summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-04-28 01:00:23 +0200
committermkanat%kerio.com <>2005-04-28 01:00:23 +0200
commite1ab613cf4f4324924fe33163b501c1835c5deb4 (patch)
tree9311701fe4f9c8be88883d0014a4d94b625c3000 /Bugzilla
parent51bb0240866b63bb278974f1ee7bfe1b32dafb1e (diff)
downloadbugzilla-e1ab613cf4f4324924fe33163b501c1835c5deb4.tar.gz
bugzilla-e1ab613cf4f4324924fe33163b501c1835c5deb4.tar.xz
Bug 289012: Can't use an undefined value as a HASH reference at userprefs.cgi line 142.
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User/Setting.pm4
1 files changed, 2 insertions, 2 deletions
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