From: lpsolit%gmail.com <> Date: Mon, 17 Sep 2007 03:40:46 +0000 (+0000) Subject: Bug 396376: Crash on logout - Patch by Frédéric Buclin r/a... X-Git-Tag: bugzilla-3.1.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2ced36948e4edd9ad6354cb183a92ef6aebee45;p=thirdparty%2Fbugzilla.git Bug 396376: Crash on logout - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/Bugzilla.pm b/Bugzilla.pm index f4b9212a36..93c37a51c8 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});