* Code for bug#32835.

This commit is contained in:
xieqiyu
2023-03-13 02:50:03 +00:00
parent 56cab36e20
commit 84e8ea04f5

View File

@@ -2896,8 +2896,11 @@ class executionModel extends model
}
/* Get stories of children task. */
$childrens = $this->dao->select('*')->from(TABLE_TASK)->where('parent')->in($parents)->fetchAll('id');
foreach($childrens as $children) $taskStories[$children->story] = $children->story;
if(!empty($parents))
{
$childrens = $this->dao->select('*')->from(TABLE_TASK)->where('parent')->in($parents)->fetchAll('id');
foreach($childrens as $children) $taskStories[$children->story] = $children->story;
}
/* Remove empty story. */
unset($taskStories[0]);