Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-07-14 14:37:07 +02:00
parent 7281a51eff
commit a773652c04

View File

@ -5918,8 +5918,10 @@ abstract class CommonObject
} elseif (is_array($this->fields[$key]['arrayofkeyval'])) { } elseif (is_array($this->fields[$key]['arrayofkeyval'])) {
$param['options'] = $this->fields[$key]['arrayofkeyval']; $param['options'] = $this->fields[$key]['arrayofkeyval'];
$type = $this->fields[$key]['type']; $type = $this->fields[$key]['type'];
if(!in_array($type, array('select', 'checkbox', 'radio'))) { if (!in_array($type, array('select', 'checkbox', 'radio'))) {
$type = 'select'; $type = 'select';
} else {
$type = $this->fields[$key]['type'];
} }
} else { } else {
$param['options'] = array(); $param['options'] = array();