summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-09-17 05:40:46 +0200
committerlpsolit%gmail.com <>2007-09-17 05:40:46 +0200
commite2ced36948e4edd9ad6354cb183a92ef6aebee45 (patch)
treeca72a1993fc302552636ebe4aa8db8c4fdfc1293 /Bugzilla.pm
parent3006c3c98c8fa528261251cbd8f694f9bc4ca8fa (diff)
downloadbugzilla-e2ced36948e4edd9ad6354cb183a92ef6aebee45.tar.gz
bugzilla-e2ced36948e4edd9ad6354cb183a92ef6aebee45.tar.xz
Bug 396376: Crash on logout - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla.pm')
-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});