]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
think && was binding too closely in remembered_user
authorEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 04:00:58 +0000 (00:00 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 04:00:58 +0000 (00:00 -0400)
darcs-hash:20080624040058-34904-0f16041ec545e1a42384178f6cd52edcae967d2a.gz

lib/util.php

index 0502ce7976fb428971bfe0cf3e7fbdf80cd9ba84..96e7e08cf77d2a5ace7a8b4eb0639d078c13b842 100644 (file)
@@ -476,7 +476,7 @@ function common_remembered_user() {
                list($id, $code) = explode(':', $packed);
                if ($id && $code) {
                        $rm = Remember_me::staticGet($code);
-                       if ($rm && $rm->user_id == $id) {
+                       if ($rm && ($rm->user_id == $id)) {
                                $user = User::staticGet($rm->id);
                                if ($user) {
                                        # successful!