diff --git a/module/bug/control.php b/module/bug/control.php index eb0a5c5456..d60e786e2a 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1188,13 +1188,12 @@ class bug extends control /* 关闭解决的 bugs。 */ /* Close resolved bugs. */ $bugIdList = $releaseID ? $this->post->unlinkBugs : $this->post->bugIdList; + $skipBugs = array(); if($bugIdList) { $bugIdList = array_unique($bugIdList); $bugs = $this->bug->getByIdList($bugIdList); - - $bug = form::data($this->config->bug->form->close)->get(); - $skipBugs = array(); + $bug = form::data($this->config->bug->form->close)->get(); foreach($bugIdList as $bugID) { $oldBug = $bugs[$bugID];