fix calls to staticGet() to avoid problems with default args

This commit is contained in:
Evan Prodromou 2011-08-22 18:06:06 -04:00
parent feb9030fb9
commit 0022bb8110

View File

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