Commit 15b80375 authored by Leigh Stoller's avatar Leigh Stoller

Fix mysql error in login path.

parent 48e879a4
...@@ -1164,9 +1164,11 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, ...@@ -1164,9 +1164,11 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null,
# failed, reset the timestamp # failed, reset the timestamp
if ($rv) { if ($rv) {
DBQueryFatal("update user_stats set ". if ($lastactivestr != '') {
" last_activity='$lastactivestr' ". DBQueryFatal("update user_stats set ".
"where uid_idx='$uid_idx'"); " last_activity='$lastactivestr' ".
"where uid_idx='$uid_idx'");
}
SUEXECERROR(SUEXEC_ACTION_DIE); SUEXECERROR(SUEXEC_ACTION_DIE);
return; return;
} }
......
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