Commit f7216aa9 authored by Colin Joy's avatar Colin Joy Committed by David Lawrence

Bug 1201809: The default value for user settings cannot be false

r/a=dkl
parent d5ac9ef9
...@@ -127,7 +127,7 @@ sub add_setting { ...@@ -127,7 +127,7 @@ sub add_setting {
my $exists = _setting_exists($name); my $exists = _setting_exists($name);
return if ($exists && !$force_check); return if ($exists && !$force_check);
($name && $default_value) ($name && length( $default_value // '' ))
|| ThrowCodeError("setting_info_invalid"); || ThrowCodeError("setting_info_invalid");
if ($exists) { if ($exists) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment