* Finish task #77013.

This commit is contained in:
Yagami
2022-11-22 09:30:28 +08:00
parent aa8895944e
commit ae9764ebd1
+1 -1
View File
@@ -99,7 +99,7 @@ class programModel extends model
$productPrograms = $this->dao->select('id, name')->from(TABLE_PROJECT)->where('type')->eq('program')->andWhere('deleted')->eq('0')->fetchPairs();
/* Put products of current program first.*/
if(!empty($products) and $mode != 'assign' and $programID)
if(!empty($products) and isset($products[$programID]) and $mode != 'assign' and $programID)
{
$currentProgramProducts = $products[$programID];
unset($products[$programID]);