standards
This commit is contained in:
parent
324baa6b8b
commit
341499e8ca
1 changed files with 6 additions and 5 deletions
|
@ -221,7 +221,8 @@ class ACL extends BaseObject
|
|||
return $o;
|
||||
}
|
||||
|
||||
private static function fixACL(&$item) {
|
||||
private static function fixACL(&$item)
|
||||
{
|
||||
$item = intval(str_replace(['<', '>'], ['', ''], $item));
|
||||
}
|
||||
|
||||
|
@ -247,10 +248,10 @@ class ACL extends BaseObject
|
|||
$deny_gid = $matches[1];
|
||||
|
||||
// Reformats the ACL data so that it is accepted by the JS frontend
|
||||
array_walk($allow_cid, 'self::fixACL');
|
||||
array_walk($allow_gid, 'self::fixACL');
|
||||
array_walk($deny_cid, 'self::fixACL');
|
||||
array_walk($deny_gid, 'self::fixACL');
|
||||
array_walk($allow_cid, 'self::fixACL');
|
||||
array_walk($allow_gid, 'self::fixACL');
|
||||
array_walk($deny_cid, 'self::fixACL');
|
||||
array_walk($deny_gid, 'self::fixACL');
|
||||
|
||||
Contact::pruneUnavailable($allow_cid);
|
||||
|
||||
|
|
Loading…
Reference in a new issue