Update global_functions.php

This commit is contained in:
Whale 2020-12-25 16:41:14 +08:00 committed by GitHub
parent 6e866001d6
commit f5d5929cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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