From e2ced36948e4edd9ad6354cb183a92ef6aebee45 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Sep 2007 03:40:46 +0000 Subject: =?UTF-8?q?Bug=20396376:=20Crash=20on=20logout=20-=20Patch=20by=20?= =?UTF-8?q?Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20?= =?UTF-8?q?=20r/a=3Dmkanat?= 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(-) (limited to 'Bugzilla.pm') 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.1