- XHTML errors/warnings fixed in some pages
[shipsimu.git] / application / ship-simu / main / user / extended / class_ShipSimuGuest.php
index 69d7763552f0d72e506cd8bad8d2ad22b4ca6190..1f7ec5505faac9c659d9fb65011258d89314a6fc 100644 (file)
@@ -55,10 +55,10 @@ class ShipSimuGuest extends ShipSimuBaseUser implements ManageableGuest {
                $userInstance->setUserName($userName);
 
                // Check if the username exists
-               if (!$userInstance->ifUsernameExists()) {
+               if ($userInstance->ifUsernameExists() === false) {
                        // Throw an exception here
                        throw new UsernameMissingException(array($userInstance, $userName), self::EXCEPTION_USERNAME_NOT_FOUND);
-               }
+               } // END - if
 
                // Return the instance
                return $userInstance;