From 2efa1d0cda15f2716bb6d264a4ae85853ef55848 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 27 Oct 2014 17:28:47 +0300 Subject: [PATCH] Fix Bugzilla->cookie when they are empty --- Bugzilla/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 0c7a9da59..3c8f890a6 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -441,7 +441,7 @@ sub get_cookies my ($self, @p) = CGI::self_or_default(@_); unless ($self->{'.cookies'}) { - $self->{'.cookies'} = CGI::Cookie->fetch; + $self->{'.cookies'} = CGI::Cookie->fetch || {}; if (Bugzilla->params->{utf8}) { my $v;