* Optimize fetching data from API.

This commit is contained in:
dingguodong
2021-09-02 15:39:34 +08:00
parent 1b41b61cee
commit d272eeeefc
+1 -1
View File
@@ -284,7 +284,7 @@ class gitlabModel extends model
public function getProjectName($gitlabID, $projectID)
{
$project = $this->apiGetSingleProject($gitlabID, $projectID);
if(isset($project->name)) return $project->name;
if(is_object($project) and isset($project->name)) return $project->name;
return false;
}