* Fix bug#37219,37218

This commit is contained in:
zenggang
2023-08-11 08:41:31 +00:00
parent 108ea4edb9
commit 82640f28f4
8 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -538,7 +538,7 @@ class gitlabModel extends model
$url = sprintf($apiRoot, "/users") . "&order_by={$order}&sort={$sort}&page={$page}&per_page={$perPage}&active=true";
$httpData = commonModel::http($url, null, array(), array(), 'data', 'GET', 30, true, false);
$result = json_decode($httpData['body']);
if(!empty($result))
if(!empty($result) && is_array($result))
{
$response = array_merge($response, $result);
$page += 1;