From 99eaec8c899a1a6cff4f173bbf28b021ccb757a3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Jul 2008 02:25:02 -0400 Subject: [PATCH] forgot to change null check at beginning of set user darcs-hash:20080709062502-84dde-7e4c574dc0a710bcd0b662bfbab263308d1c9cd5.gz --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 1639457e0e..36854eee9b 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)) {