diff options
author | lpsolit%gmail.com <> | 2007-09-17 05:40:46 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-09-17 05:40:46 +0200 |
commit | e2ced36948e4edd9ad6354cb183a92ef6aebee45 (patch) | |
tree | ca72a1993fc302552636ebe4aa8db8c4fdfc1293 | |
parent | 3006c3c98c8fa528261251cbd8f694f9bc4ca8fa (diff) | |
download | bugzilla-e2ced36948e4edd9ad6354cb183a92ef6aebee45.tar.gz bugzilla-e2ced36948e4edd9ad6354cb183a92ef6aebee45.tar.xz |
Bug 396376: Crash on logout - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
-rw-r--r-- | Bugzilla.pm | 2 |
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}); |