From b5630098eb9dc405f245eff4ce0cce4f66e6dce8 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 9 Sep 2022 16:10:34 +0800 Subject: [PATCH] * Fix bug #27449. --- module/bug/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/model.php b/module/bug/model.php index dbb79b8230..5418527c3a 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1014,13 +1014,13 @@ class bugModel extends model * * @param int $bugID * @access public - * @return string + * @return array */ public function assign($bugID) { $now = helper::now(); $oldBug = $this->getById($bugID); - if($oldBug->status == 'closed') return false; + if($oldBug->status == 'closed') return array(); $bug = fixer::input('post') ->add('id', $bugID)