summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-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)) {