* Adjust return value for mr is empty.

This commit is contained in:
caoyanyi
2023-12-15 14:30:35 +08:00
parent 8c53b8a6a4
commit fc151267d5
+2
View File
@@ -910,6 +910,8 @@ class mrModel extends model
*/
public function getDiffs(object $MR, string $encoding = ''): array
{
if(!isset($MR->repoID)) return array();
$repo = $this->loadModel('repo')->getByID($MR->repoID);
if(!$repo) return array();