mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Admin-UI: Avoid an unexpected dropdown result if writeParms['optArray'] is defined but empty.
This commit is contained in:
@@ -5781,7 +5781,7 @@ var_dump($select_options);*/
|
||||
|
||||
|
||||
// XXX Fixes For the above. - use optArray variable. eg. $field['key']['writeParms']['optArray'] = array('one','two','three');
|
||||
if(($attributes['type'] == 'dropdown' || $attributes['type'] == 'radio' || $attributes['type'] == 'checkboxes') && !empty($parms['optArray']))
|
||||
if(($attributes['type'] == 'dropdown' || $attributes['type'] == 'radio' || $attributes['type'] == 'checkboxes') && isset($parms['optArray']))
|
||||
{
|
||||
$fopts = $parms;
|
||||
$parms = $fopts['optArray'];
|
||||
|
Reference in New Issue
Block a user