summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/User/Setting.pm2
1 files changed, 1 insertions, 1 deletions
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) {