Fix phpcs

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

View File

@ -5920,6 +5920,8 @@ abstract class CommonObject
$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();