Fix incorrect display of default number format

Pass an array instead of CSV if needed.
This commit is contained in:
nathan 2024-09-04 08:15:40 -06:00
parent 0a1ee38b40
commit cfcbe3018d

View File

@ -697,7 +697,7 @@ class preferences_settings
protected static function get_default_label($default, array $values, $lang=true) protected static function get_default_label($default, array $values, $lang=true)
{ {
// explode comma-separated multiple default values // explode comma-separated multiple default values
if (!is_array($default) && !isset($values[$default]) && strpos($default, ',') !== false) if(!is_array($default) && !isset($values[$default]) && strpos($default, ',') > 0)
{ {
$labels = explode(',', $default); $labels = explode(',', $default);
} }