* Show a message if the object not found or empty response.

This commit is contained in:
dingguodong
2024-04-28 15:35:24 +08:00
parent 474fb7fb84
commit 7cf0deefd7
+1 -1
View File
@@ -317,7 +317,7 @@ class mr extends control
if(!$MR) return $this->locate($this->createLink('mr', 'browse'));
if(isset($MR->hostID)) $rawMR = $this->mr->apiGetSingleMR($MR->repoID, $MR->mriid);
if($MR->synced && (!isset($rawMR->id) || empty($rawMR))) return $this->display();
if($MR->synced && (!isset($rawMR->id) || empty($rawMR))) $this->sendError($this->lang->mr->apiError->emptyResponse, true);
/* Sync MR from GitLab to ZenTaoPMS. */
$MR = $this->mr->apiSyncMR($MR);