]> git.mxchange.org Git - friendica.git/commitdiff
viewcontacts - make the tabbar available even if hide-friends is active
authorrabuzarus <>
Sat, 25 Jun 2016 14:20:44 +0000 (16:20 +0200)
committerrabuzarus <>
Sat, 25 Jun 2016 14:20:44 +0000 (16:20 +0200)
mod/viewcontacts.php
view/theme/frio/css/style.css

index 2e36a3bd7a2224998389b7c451bb449b75ea9ee9..2e71bc7abee3c4a61aa75fa409e0a40fa57dde1a 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;
+       }
+
        $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')",
index bfce21a6543bca4cd2016edfdea30adda0fc62a6..8ddfcbf4367fc553331881a91aca038ea322ac9b 100644 (file)
@@ -1770,7 +1770,7 @@ ul.dropdown-menu li:hover {
 .allfriends-content-wrapper, .match-content-wrapper, .dirfind-content-wrapper,
 .directory-content-wrapper, .manage-content-wrapper, .notes-content-wrapper,
 .message-content-wrapper, .apps-content-wrapper, .notifications-content-wrapper,
-.admin-content-wrapper, .group-content-wrapper {
+.admin-content-wrapper, .group-content-wrapper, .viewcontacts-content-wrapper {
     min-height: calc(100vh - 150px);
     padding: 15px;
     padding-bottom: 20px;