From 6632aaad20ff47239c9608ddf2bb355d6b82132d Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 14 Dec 2023 11:12:06 +0800 Subject: [PATCH] * helper: remove empty value in array when calling convertType method. --- framework/helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index 6e8015ef73..854ff81b5b 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -379,7 +379,7 @@ class helper extends baseHelper case 'bool': return (bool)$value; case 'array': - return (array)$value; + return array_filter((array)$value); case 'object': return (object)$value; case 'datetime':