1
0
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:
Cameron
2020-04-16 10:28:18 -07:00
parent 4424c9906b
commit a5a4b900a4

View File

@@ -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'];