show a default preference of 0 (was hidden before, but used!)

This commit is contained in:
Ralf Becker 2017-10-10 18:46:18 +02:00
parent 82dd2cbc11
commit b7a948bdff

View File

@ -449,7 +449,7 @@ class preferences_settings
'type' => $setting['type'],
'label' => preg_replace('|<br[ /]*>|i', "\n", $setting['label']),
'help' => lang($setting['help']), // is html
'default' => !empty($default) ? lang('Default').': '.$default : null,
'default' => (string)$default !== '' ? lang('Default').': '.$default : null,
'onchange' => $setting['onchange'],
);
//error_log("appname=$appname, attribute=$attribute, setting=".array2string($setting));