mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
fix explode_msg 0 msg error
This commit is contained in:
@@ -75,7 +75,7 @@ function explode_msg(string $msg, array $includes = [' ', "\t"]): array
|
|||||||
$msg_seg = explode("\n", $msg);
|
$msg_seg = explode("\n", $msg);
|
||||||
$ls = [];
|
$ls = [];
|
||||||
foreach ($msg_seg as $v) {
|
foreach ($msg_seg as $v) {
|
||||||
if (empty(trim($v)) && trim($v) != 0) {
|
if (trim($v) === '') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$ls[] = trim($v);
|
$ls[] = trim($v);
|
||||||
|
|||||||
Reference in New Issue
Block a user