From 2c28ed9ab8f3a40d9cb4525e87aceda7f8158f34 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Thu, 11 Aug 2022 10:01:12 +0800 Subject: [PATCH] fix explode_msg 0 msg error --- src/ZM/global_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZM/global_functions.php b/src/ZM/global_functions.php index 4c0ad88e..b5d8fc5d 100644 --- a/src/ZM/global_functions.php +++ b/src/ZM/global_functions.php @@ -75,7 +75,7 @@ function explode_msg(string $msg, array $includes = [' ', "\t"]): array $msg_seg = explode("\n", $msg); $ls = []; foreach ($msg_seg as $v) { - if (empty(trim($v)) && trim($v) != 0) { + if (trim($v) === '') { continue; } $ls[] = trim($v);