From: Roland Haeder Date: Wed, 5 Apr 2017 17:35:49 +0000 (+0200) Subject: added spaces + used x() the proper way X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33e938a837cdb7ba7ae3ae00d0ffc6cdf8183a1d;p=friendica.git added spaces + used x() the proper way Signed-off-by: Roland Haeder --- diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 2ba66e9ecc..f337474a2a 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -608,7 +608,7 @@ function acl_lookup(App $a, $out_type = 'json') { if (dbm::is_result($r)) { - foreach ($r as $g){ + foreach ($r as $g) { $contacts[] = array( 'type' => 'c', 'photo' => proxy_url($g['micro'], false, PROXY_SIZE_MICRO), @@ -617,7 +617,7 @@ function acl_lookup(App $a, $out_type = 'json') { 'network' => $g['network'], 'link' => $g['url'], 'nick' => htmlentities(($g['attag']) ? $g['attag'] : $g['nick']), - 'forum' => ((x($g['forum']) || x($g['prv'])) ? 1 : 0), + 'forum' => ((x($g, 'forum') || x($g, 'prv')) ? 1 : 0), ); } }