]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 396376: Crash on logout - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a...
authorlpsolit%gmail.com <>
Mon, 17 Sep 2007 03:40:46 +0000 (03:40 +0000)
committerlpsolit%gmail.com <>
Mon, 17 Sep 2007 03:40:46 +0000 (03:40 +0000)
Bugzilla.pm

index f4b9212a36e388e6ab1d8556eb6e8912ae531d5a..93c37a51c81687275184ede5dcb0bc6ec35eec58 100644 (file)
@@ -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});