]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Should fix spurious 'nickname taken' and 'email taken' errors on registration. Form...
authorBrion Vibber <brion@pobox.com>
Thu, 4 Feb 2010 21:08:34 +0000 (13:08 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 4 Feb 2010 21:08:34 +0000 (13:08 -0800)
(was checking $obj !== false but we return null now on negative cache hits, with false for cache misses)

actions/register.php

index 6981373467636ba77414e82e8c0c7afb7aaf46a6..ccab76cf0193af51e161624f054e8b05681292c6 100644 (file)
@@ -280,7 +280,7 @@ class RegisterAction extends Action
     function nicknameExists($nickname)
     {
         $user = User::staticGet('nickname', $nickname);
-        return ($user !== false);
+        return is_object($user);
     }
 
     /**
@@ -300,7 +300,7 @@ class RegisterAction extends Action
             return false;
         }
         $user = User::staticGet('email', $email);
-        return ($user !== false);
+        return is_object($user);
     }
 
     // overrrided to add entry-title class