mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 04:58:59 +00:00
Fix groups member counting issue
This commit is contained in:
parent
6a4683e6a8
commit
55562f79eb
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user