diff --git a/application/models/tables/ApprovalBodyRoles.php b/application/models/tables/ApprovalBodyRoles.php index 468e76391016ab7535c9d5150a8083a5f6515caf..bc8622e3f16ca3a016e3e8fd354e655cd13e1bb5 100644 --- a/application/models/tables/ApprovalBodyRoles.php +++ b/application/models/tables/ApprovalBodyRoles.php @@ -39,9 +39,13 @@ class ApprovalBodyRoles extends Nmc_Db_Table } $db = $this->_db; - $where = $db->quoteInto('`group` IN(?)', $groupIds); + if(count($groupIds) > 0) { + $where = $db->quoteInto('`group` IN(?)', $groupIds); + } else { + $where = '0 = 1'; + } return $this->fetchAll($where); } } -?> \ No newline at end of file +?>