]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
forgot to change null check at beginning of set user
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 06:25:02 +0000 (02:25 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 06:25:02 +0000 (02:25 -0400)
darcs-hash:20080709062502-84dde-7e4c574dc0a710bcd0b662bfbab263308d1c9cd5.gz

lib/util.php

index 1639457e0eb48944ed212e72c4ecea96998dad58..36854eee9b49c868f91b95161f768147c4e0448e 100644 (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)) {