From b72174df29cfee4e043de453298853a25747417e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 7 Mar 2017 09:42:21 -0500 Subject: Bug 1343936 - Strange error in userprefs.cgi --- userprefs.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userprefs.cgi') diff --git a/userprefs.cgi b/userprefs.cgi index 015f6bf4e..d7b20573f 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -785,7 +785,7 @@ sub DoSessions { my $sessions = Bugzilla::User::Session->match({ userid => $user->id, LIMIT => SESSION_MAX + 1 }); my $info_getter = $user->authorizer && $user->authorizer->successful_info_getter(); - if ($info_getter) { + if ($info_getter && $info_getter->can('cookie')) { foreach my $session (@$sessions) { $session->{current} = $info_getter->cookie eq $session->{cookie}; } -- cgit v1.2.3-24-g4f1b