fix explode_msg 0 msg error

This commit is contained in:
Jerry Ma 2022-08-11 10:01:12 +08:00
parent 5f3a626557
commit 2c28ed9ab8

View File

@ -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);