diff --git a/module/execution/model.php b/module/execution/model.php index 9b70acbf43..65ff36dbde 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2452,6 +2452,8 @@ class executionModel extends model */ public function getTeamPairsByProject($projectID = 0) { + if(empty($projectID)) return array(); + $teams = $this->dao->select('id,team,type')->from(TABLE_PROJECT) ->where('deleted')->eq(0) ->andWhere('(project')->eq($projectID)