]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix "Trying to get property of non-object" errors when a user tries to log in using...
authorJeffery To <jeffery.to@gmail.com>
Fri, 12 Jun 2009 11:58:30 +0000 (19:58 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 12 Jun 2009 11:58:30 +0000 (19:58 +0800)
lib/util.php

index b3a94a5a011ffe1d947d907a5ceb4e690f0548d1..32e178b3ee142a145fa12102dc72d15eff5a62a3 100644 (file)
@@ -114,7 +114,7 @@ function common_check_user($nickname, $password)
         return false;
     }
     $user = User::staticGet('nickname', $nickname);
-    if (is_null($user)) {
+    if (is_null($user) || $user === false) {
         return false;
     } else {
         if (0 == strcmp(common_munge_password($password, $user->id),