Skip to content
Snippets Groups Projects
Commit 414b17d9 authored by Tim Steiner's avatar Tim Steiner
Browse files

Fix for when a user belongs to no roles.

parent 930def8e
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,11 @@ class ApprovalBodyRoles extends Nmc_Db_Table ...@@ -39,7 +39,11 @@ class ApprovalBodyRoles extends Nmc_Db_Table
} }
$db = $this->_db; $db = $this->_db;
if(count($groupIds) > 0) {
$where = $db->quoteInto('`group` IN(?)', $groupIds); $where = $db->quoteInto('`group` IN(?)', $groupIds);
} else {
$where = '0 = 1';
}
return $this->fetchAll($where); return $this->fetchAll($where);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment