* Add error return.

This commit is contained in:
caoyanyi
2021-12-09 09:10:18 +00:00
parent c6c8f8de15
commit 6bdd9038cf
+1
View File
@@ -2349,6 +2349,7 @@ class gitlabModel extends model
$url = sprintf($this->getApiRoot($gitlabID), "/projects/$projectID/protected_branches");
$branches = json_decode(commonModel::http($url));
if(!is_array($branches)) return $branches;
/* Parse order string. */
$order = explode('_', $orderBy);