Fix demonstrated default value is shown as raw value instead of its relevant label

This commit is contained in:
hadi 2023-06-05 16:00:33 +02:00
parent 3c35137e2c
commit 68351ffb37

View File

@ -698,6 +698,10 @@ class preferences_settings
$def = is_array($value[$def]) ? $value[$def]['label'] : $value[$def];
break;
}
elseif(is_array($value) && isset($value['label']) && $value['value'] == $def)
{
$def = $value['label'];
}
}
}
if ($lang) $def = lang($def);