Fix phpcs
This commit is contained in:
parent
7281a51eff
commit
a773652c04
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user