diff --git a/module/bug/control.php b/module/bug/control.php index fbb370ca21..b9027f4e94 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1530,7 +1530,7 @@ class bug extends control */ public function batchResolve($resolution, $resolvedBuild = '') { - if(!isset($this->post->bugIDList)) return print(js::locate($this->session->bugList, 'parent')); + if(!$this->post->bugIDList) return print(js::locate($this->session->bugList, 'parent')); $bugIDList = array_unique($this->post->bugIDList); $changes = $this->bug->batchResolve($bugIDList, $resolution, $resolvedBuild); @@ -1766,7 +1766,7 @@ class bug extends control return print(js::locate($this->session->bugList, 'parent')); } - if(!isset($this->post->bugIDList)) return print(js::locate($this->session->bugList, 'parent')); + if(!$this->post->bugIDList) return print(js::locate($this->session->bugList, 'parent')); $bugIDList = array_unique($$this->post->bugIDList); $bugs = $this->dao->select('id, title, status, resolvedBy, openedBuild')->from(TABLE_BUG)->where('id')->in($bugIDList)->fetchAll('id');