]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix calls to staticGet() to avoid problems with default args
authorEvan Prodromou <evan@status.net>
Mon, 22 Aug 2011 22:06:06 +0000 (18:06 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 22 Aug 2011 22:06:06 +0000 (18:06 -0400)
lib/util.php

index f3be1d0ddcb9c45b69c3b9cb83093c1b89a37935..ba705eb7fa1823650db3f048a5e3f0cce1984a74 100644 (file)
@@ -413,7 +413,7 @@ function common_remembered_user()
         return null;
     }
 
-    $rm = Remember_me::staticGet($code);
+    $rm = Remember_me::staticGet('code', $code);
 
     if (!$rm) {
         common_log(LOG_WARNING, 'No such remember code: ' . $code);
@@ -427,7 +427,7 @@ function common_remembered_user()
         return null;
     }
 
-    $user = User::staticGet($rm->user_id);
+    $user = User::staticGet('id', $rm->user_id);
 
     if (!$user) {
         common_log(LOG_WARNING, 'No such user for rememberme: ' . $rm->user_id);