mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Replace the legacy function
This commit is contained in:
parent
ee2b249d00
commit
41dc6cea2b
4 changed files with 22 additions and 126 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue