From 02e29f3d0de129d98c8111fe00445caef9dc8136 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 30 Aug 2021 10:32:41 +0800 Subject: [PATCH] * Fix an error of my collection is empty. --- module/doc/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index 9986e976db..126d151b7b 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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));