diff options
Diffstat (limited to 'Bugzilla/User')
-rw-r--r-- | Bugzilla/User/Setting.pm | 4 |
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 |