forgot to change null check at beginning of set user

darcs-hash:20080709062502-84dde-7e4c574dc0a710bcd0b662bfbab263308d1c9cd5.gz
This commit is contained in:
Evan Prodromou 2008-07-09 02:25:02 -04:00
parent 98c9540ef9
commit 99eaec8c89
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {