From: Evan Prodromou Date: Wed, 9 Jul 2008 06:25:02 +0000 (-0400) Subject: forgot to change null check at beginning of set user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99eaec8c899a1a6cff4f173bbf28b021ccb757a3;p=quix0rs-gnu-social.git forgot to change null check at beginning of set user darcs-hash:20080709062502-84dde-7e4c574dc0a710bcd0b662bfbab263308d1c9cd5.gz --- 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)) {