]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / allfriends.php
index e4f067eaf7d4cd1b0aef62fcf800895eee17c41d..f9cffcbb2d160afdfc4e40433c9e56c5517cd9f9 100644 (file)
@@ -5,28 +5,31 @@ require_once('include/Contact.php');
 require_once('include/contact_selectors.php');
 require_once('mod/contacts.php');
 
-function allfriends_content(&$a) {
+function allfriends_content(App &$a) {
 
        $o = '';
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                return;
        }
 
-       if($a->argc > 1)
+       if ($a->argc > 1) {
                $cid = intval($a->argv[1]);
+       }
 
-       if(! $cid)
+       if (! $cid) {
                return;
+       }
 
-       $uid = $a->user[uid];
+       $uid = $a->user['uid'];
 
        $c = q("SELECT `name`, `url`, `photo` FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
                intval($cid),
                intval(local_user())
        );
 
-       if(! count($c))
+       if (! count($c)) {
+       }
                return;
 
        $a->page['aside'] = "";