]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/user/class_User.php
Registry introduces, comments fixed ;)
[shipsimu.git] / inc / classes / main / user / class_User.php
index 280adec1600d86e43d65fc161b223fbe348da7eb..7d1d060cdbb96207a8e816dfc740913d3ea9feb7 100644 (file)
@@ -31,7 +31,7 @@ class User extends BaseFrameworkSystem implements ManageableUser {
        const EXCEPTION_USERNAME_NOT_FOUND = 0xd00;
 
        /**
-        * Private constructor
+        * Protected constructor
         *
         * @return      void
         */
@@ -121,10 +121,10 @@ class User extends BaseFrameworkSystem implements ManageableUser {
                $result = $wrapperInstance->doSelectByCriteria($criteriaInstance);
 
                // Search for it
-               if ($result->next()) {
-                       // Entry found, so all is fine
-                       $exists = true;
-               }
+               if (!$result->next()) {
+                       // Entry not found
+                       $exists = false;
+               } // END - if
 
                // Return the status
                return $exists;