Replace the legacy function

This commit is contained in:
Michael 2021-10-11 04:33:10 +00:00
parent ee2b249d00
commit 41dc6cea2b
4 changed files with 22 additions and 126 deletions

View file

@ -130,10 +130,8 @@ class Acl extends BaseModule
$group_count = DBA::count('group', $condition_group);
}
$networks = Widget::unavailableNetworksAsArray();
if (!empty($networks)) {
$condition = DBA::mergeConditions($condition, array_merge(["NOT `network` IN (" . substr(str_repeat("?, ", count($networks)), 0, -2) . ")"], $networks));
}
$networks = Widget::unavailableNetworks();
$condition = DBA::mergeConditions($condition, array_merge(["NOT `network` IN (" . substr(str_repeat("?, ", count($networks)), 0, -2) . ")"], $networks));
switch ($type) {
case self::TYPE_MENTION_CONTACT_GROUP: