From a5a4b900a4f3bb21b63486cafcd32d6ce337def8 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 16 Apr 2020 10:28:18 -0700 Subject: [PATCH] Admin-UI: Avoid an unexpected dropdown result if writeParms['optArray'] is defined but empty. --- e107_handlers/form_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 46b139d95..0564650c1 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -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'];