]> git.mxchange.org Git - friendica.git/commitdiff
added spaces + used x() the proper way
authorRoland Haeder <roland@mxchange.org>
Wed, 5 Apr 2017 17:35:49 +0000 (19:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 5 Apr 2017 17:36:01 +0000 (19:36 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/acl_selectors.php

index 2ba66e9ecc5578edb101b610c8280c9fa59b70d8..f337474a2a0347ac894a730be0f99208990d6d53 100644 (file)
@@ -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),
                        );
                }
        }