]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewcontacts.php
Added response active support to smoothly
[friendica.git] / mod / viewcontacts.php
index 2e36a3bd7a2224998389b7c451bb449b75ea9ee9..2eae8fec8e41813cdf3e21d19e80c584d6a71d40 100644 (file)
@@ -36,16 +36,16 @@ function viewcontacts_content(&$a) {
                return;
        }
 
-       if(((! count($a->profile)) || ($a->profile['hide-friends']))) {
-               notice( t('Permission denied.') . EOL);
-               return;
-       }
-
        $o = "";
 
        // tabs
        $o .= profile_tabs($a,$is_owner, $a->data['user']['nickname']);
 
+       if(((! count($a->profile)) || ($a->profile['hide-friends']))) {
+               notice( t('Permission denied.') . EOL);
+               return $o;
+       }
+
        $r = q("SELECT COUNT(*) AS `total` FROM `contact`
                WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0
                        AND `network` IN ('%s', '%s', '%s')",