diff --git a/src/ZM/global_functions.php b/src/ZM/global_functions.php index ce107a90..b10a5069 100644 --- a/src/ZM/global_functions.php +++ b/src/ZM/global_functions.php @@ -296,7 +296,7 @@ function bot() { function getAllFdByConnectType(string $type = 'default'): array { $fds = []; foreach (ManagerGM::getAllByName($type) as $obj) { - array_push($fd, $obj->getFd()); + $fds[] = $obj->getFd(); } return $fds; }