Skip to content
Snippets Groups Projects
Commit cede322c authored by Angie Byron's avatar Angie Byron
Browse files

#293612 by egfrith: user_authenticate() should work when is empty.

parent 65006002
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ function _sess_write($key, $value) { ...@@ -132,7 +132,7 @@ function _sess_write($key, $value) {
// the session table. This reduces memory and server load, and gives more useful // the session table. This reduces memory and server load, and gives more useful
// statistics. We can't eliminate anonymous session table rows without breaking // statistics. We can't eliminate anonymous session table rows without breaking
// the "Who's Online" block. // the "Who's Online" block.
if (!drupal_save_session() || (empty($_COOKIE[session_name()]) && empty($value))) { if (!drupal_save_session() || ($user->uid == 0 && empty($_COOKIE[session_name()]) && empty($value))) {
return TRUE; return TRUE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment