Fix groups member counting issue

This commit is contained in:
Pierre HUBERT 2019-02-23 19:25:14 +01:00
parent 6a4683e6a8
commit 55562f79eb

View File

@ -555,7 +555,7 @@ class GroupsComponent {
*/
private function countMembers(int $id) : int {
return db()->count(self::GROUPS_MEMBERS_TABLE,
"WHERE groups_id = ?",
"WHERE groups_id = ? AND level <= ".GroupMember::MEMBER,
array($id));
}