mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15:59:29 +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 {
|
private function countMembers(int $id) : int {
|
||||||
return db()->count(self::GROUPS_MEMBERS_TABLE,
|
return db()->count(self::GROUPS_MEMBERS_TABLE,
|
||||||
"WHERE groups_id = ?",
|
"WHERE groups_id = ? AND level <= ".GroupMember::MEMBER,
|
||||||
array($id));
|
array($id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user