* Fix an error of my collection is empty.

This commit is contained in:
xieqiyu
2021-08-30 10:33:49 +08:00
parent 1765f12338
commit 02e29f3d0d
+2
View File
@@ -255,6 +255,8 @@ class docModel extends model
->fetchAll('id');
}
if(empty($docs)) return array();
/* Get projects, executions and products by docIdList. */
list($projects, $executions, $products) = $this->getObjectsByDoc(array_keys($docs));