]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
using bogus attribute of $rm
authorEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 04:02:34 +0000 (00:02 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 04:02:34 +0000 (00:02 -0400)
darcs-hash:20080624040234-34904-bf5e87a55ee94c74b840c6a62e78e476c7b5f8d3.gz

lib/util.php

index 96e7e08cf77d2a5ace7a8b4eb0639d078c13b842..88a71273dd28609f1384fad7663f22d2fe390fd5 100644 (file)
@@ -477,7 +477,7 @@ function common_remembered_user() {
                if ($id && $code) {
                        $rm = Remember_me::staticGet($code);
                        if ($rm && ($rm->user_id == $id)) {
-                               $user = User::staticGet($rm->id);
+                               $user = User::staticGet($rm->user_id);
                                if ($user) {
                                        # successful!
                                        $result = $rm->delete();