+ Return empty array if value is null.

This commit is contained in:
dingguodong
2023-04-25 09:37:47 +08:00
parent 8298fd9d55
commit bb7bae58bb
+2
View File
@@ -18,6 +18,8 @@ class checkList extends wg
public function getValueList()
{
$value = $this->prop('value');
if(is_null($value)) return array();
if($this->prop('type') === 'checkbox') return is_array($value) ? $value : explode(',', $value);
return [$value];
}