From 341499e8ca70d93e0e9721c96844bf3c354641f0 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 24 Mar 2018 19:40:35 +0000 Subject: [PATCH] standards --- src/Core/ACL.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Core/ACL.php b/src/Core/ACL.php index 78d2ca41b..4e8bf6abd 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -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);