1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Fixes #5090 - default value can now be set if the value is 0 or empty.

This commit is contained in:
camer0n
2023-10-16 16:23:52 -07:00
parent 1a8fb98161
commit 322eaa972f

View File

@@ -6519,7 +6519,7 @@ var_dump($select_options);*/
$key .= '[' . e_LANGUAGE . ']';
}
if(empty($value) && !empty($parms['default']) && $attributes['type'] !== 'dropdown') // Allow writeParms to set default value.
if(empty($value) && isset($parms['default']) && $attributes['type'] !== 'dropdown') // Allow writeParms to set default value.
{
$value = $parms['default'];
}