summaryrefslogtreecommitdiff
path: root/includes/session.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-11 16:37:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-11 16:37:38 +0000
commitcede322c1b1c78844c33faeafc9115a6e4d4042c (patch)
tree730f76d633a37a270100e7f32e2114c41d622def /includes/session.inc
parent65006002edba97c5ef1dcbaab0488d7dfeb1bed8 (diff)
downloadbrdo-cede322c1b1c78844c33faeafc9115a6e4d4042c.tar.gz
brdo-cede322c1b1c78844c33faeafc9115a6e4d4042c.tar.bz2
#293612 by egfrith: user_authenticate() should work when is empty.
Diffstat (limited to 'includes/session.inc')
-rw-r--r--includes/session.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/session.inc b/includes/session.inc
index 99d714a0e..8a1b9d3c1 100644
--- a/includes/session.inc
+++ b/includes/session.inc
@@ -132,7 +132,7 @@ function _sess_write($key, $value) {
// the session table. This reduces memory and server load, and gives more useful
// statistics. We can't eliminate anonymous session table rows without breaking
// 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;
}