From e2ced36948e4edd9ad6354cb183a92ef6aebee45 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Sep 2007 03:40:46 +0000 Subject: Bug 396376: Crash on logout - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); -- cgit v1.2.3-24-g4f1b