]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/user/guest/class_Guest.php
- XHTML errors/warnings fixed in some pages
[shipsimu.git] / inc / classes / main / user / guest / class_Guest.php
index 84405dc47a9ba8fcb7daf77d6eb579b1c1eb71bf..3f45a4fcbe4d031b996e13a7042908f58c0c6210 100644 (file)
@@ -54,10 +54,10 @@ class Guest extends BaseUser implements ManageableGuest, Registerable {
                $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;