From 142fb8518bb3f8ba5e658eea79e853e57bbfc2c1 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 29 Aug 2024 08:50:49 +0000 Subject: [PATCH] * [bug#54720,done,0.5h] fix bug. --- module/story/tao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/tao.php b/module/story/tao.php index dd78439253..2dfc425c0a 100644 --- a/module/story/tao.php +++ b/module/story/tao.php @@ -2385,7 +2385,7 @@ class storyTao extends storyModel $commitIdList .= $design->commit ? "{$design->commit}," : ''; } - $commits = $this->dao->select('id,repo,revision,committer,comment as title')->from(TABLE_REPOHISTORY)->where('id')->in(array_unique(explode(',', $commitIdList)))->fetchAll('id'); + if($commitIdList) $commits = $this->dao->select('id,repo,revision,committer,comment as title')->from(TABLE_REPOHISTORY)->where('id')->in(array_unique(explode(',', $commitIdList)))->fetchAll('id'); foreach($storyGroup['design'] as $storyID => $designs) { foreach($designs as $designID => $design)