summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index f4b9212a3..93c37a51c 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -267,7 +267,7 @@ sub logout {
my ($class, $option) = @_;
# If we're not logged in, go away
- return unless user->id;
+ return unless $class->user->id;
$option = LOGOUT_CURRENT unless defined $option;
Bugzilla::Auth::Persist::Cookie->logout({type => $option});