summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 02:25:02 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 02:25:02 -0400
commit99eaec8c899a1a6cff4f173bbf28b021ccb757a3 (patch)
tree4e222a3424a5ea893f5bbc131885eeca587e211e /lib
parent98c9540ef930ad5aff57a3f0b438656c2d0eb726 (diff)
forgot to change null check at beginning of set user
darcs-hash:20080709062502-84dde-7e4c574dc0a710bcd0b662bfbab263308d1c9cd5.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 1639457e0..36854eee9 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -451,7 +451,7 @@ function common_ensure_session() {
# 3) NULL to clear
function common_set_user($user) {
- if (is_null($nickname) && common_have_session()) {
+ if (is_null($user) && common_have_session()) {
unset($_SESSION['userid']);
return true;
} else if (is_string($user)) {