From c8f8dd1b5fa77e1cf58ca35fe4bcaf5741b4cc3f Mon Sep 17 00:00:00 2001 From: Colin Joy Date: Thu, 24 Sep 2015 16:07:03 +0000 Subject: Bug 1201809: The default value for user settings cannot be false r/a=dkl --- Bugzilla/User/Setting.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/User') diff --git a/Bugzilla/User/Setting.pm b/Bugzilla/User/Setting.pm index ea3bbfb54..aece3b7de 100644 --- a/Bugzilla/User/Setting.pm +++ b/Bugzilla/User/Setting.pm @@ -127,7 +127,7 @@ sub add_setting { my $exists = _setting_exists($name); return if ($exists && !$force_check); - ($name && $default_value) + ($name && length( $default_value // '' )) || ThrowCodeError("setting_info_invalid"); if ($exists) { -- cgit v1.2.3-24-g4f1b