* Improve code robustness.

This commit is contained in:
dingguodong
2021-06-11 13:47:02 +08:00
parent 3441ea0ad6
commit 797b84bbb6
+1
View File
@@ -143,6 +143,7 @@ class gitlabModel extends model
public function getProjectsByID($id)
{
$gitlab = $this->getByID($id);
if( ! $gitlab ) return array();
$host = rtrim($gitlab->url, '/');
$host .= '/api/v4/projects';