This commit is contained in:
tianshujie
2023-12-23 15:00:32 +08:00
parent 4147f12c04
commit a8e4e87dc2
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -379,7 +379,7 @@ class helper extends baseHelper
case 'bool':
return (bool)$value;
case 'array':
return array_filter((array)$value);
return array_filter((array)$value, function($var){return ($var === '0' || !empty($var));});
case 'object':
return (object)$value;
case 'datetime':