We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0022bb81 authored by Evan Prodromou's avatar Evan Prodromou

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

parent feb9030f
...@@ -413,7 +413,7 @@ function common_remembered_user() ...@@ -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() ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment