From cf4bacdbd679785aa1eec1a4c2764d599b6f3a62 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 14 Apr 2017 15:11:45 +0200 Subject: [PATCH] fixed spaces Signed-off-by: Roland Haeder --- include/acl_selectors.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/acl_selectors.php b/include/acl_selectors.php index a293a79c47..198b009435 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -393,7 +393,7 @@ function construct_acl_data(App $a, $user) { $user_defaults = get_acl_permissions($user); if ($acl_data['groups']) { - foreach ($acl_data['groups'] as $key=>$group) { + foreach ($acl_data['groups'] as $key => $group) { // Add a "selected" flag to groups that are posted to by default if ($user_defaults['allow_gid'] && in_array($group['id'], $user_defaults['allow_gid']) && !in_array($group['id'], $user_defaults['deny_gid']) ) { @@ -404,7 +404,7 @@ function construct_acl_data(App $a, $user) { } } if ($acl_data['contacts']) { - foreach ($acl_data['contacts'] as $key=>$contact) { + foreach ($acl_data['contacts'] as $key => $contact) { // Add a "selected" flag to groups that are posted to by default if ($user_defaults['allow_cid'] && in_array($contact['id'], $user_defaults['allow_cid']) && !in_array($contact['id'], $user_defaults['deny_cid']) ) { @@ -443,7 +443,7 @@ function acl_lookup(App $a, $out_type = 'json') { logger("Searching for ".$search." - type ".$type, LOGGER_DEBUG); - if ($search!="") { + if ($search != "") { $sql_extra = "AND `name` LIKE '%%".dbesc($search)."%%'"; $sql_extra2 = "AND (`attag` LIKE '%%".dbesc($search)."%%' OR `name` LIKE '%%".dbesc($search)."%%' OR `nick` LIKE '%%".dbesc($search)."%%')"; } else { -- 2.39.5