From e1ab613cf4f4324924fe33163b501c1835c5deb4 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Wed, 27 Apr 2005 23:00:23 +0000 Subject: Bug 289012: Can't use an undefined value as a HASH reference at userprefs.cgi line 142. Patch By Tomas Kopal r=mkanat, a=justdave --- Bugzilla/User/Setting.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/User') diff --git a/Bugzilla/User/Setting.pm b/Bugzilla/User/Setting.pm index a8e1cbaed..2319b8a55 100644 --- a/Bugzilla/User/Setting.pm +++ b/Bugzilla/User/Setting.pm @@ -127,7 +127,7 @@ sub add_setting { sub get_all_settings { my ($user_id) = @_; - my $settings; + my $settings = {}; my $dbh = Bugzilla->dbh; my $sth = $dbh->prepare( @@ -162,7 +162,7 @@ sub get_all_settings { sub get_defaults { my $dbh = Bugzilla->dbh; - my $default_settings; + my $default_settings = {}; my $sth = $dbh->prepare(q{SELECT name, default_value, is_enabled FROM setting -- cgit v1.2.3-24-g4f1b