viewcontacts - make the tabbar available even if hide-friends is active
This commit is contained in:
parent
9f99f37975
commit
06959d745e
|
@ -36,16 +36,16 @@ function viewcontacts_content(&$a) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(((! count($a->profile)) || ($a->profile['hide-friends']))) {
|
|
||||||
notice( t('Permission denied.') . EOL);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$o = "";
|
$o = "";
|
||||||
|
|
||||||
// tabs
|
// tabs
|
||||||
$o .= profile_tabs($a,$is_owner, $a->data['user']['nickname']);
|
$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`
|
$r = q("SELECT COUNT(*) AS `total` FROM `contact`
|
||||||
WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0
|
WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0
|
||||||
AND `network` IN ('%s', '%s', '%s')",
|
AND `network` IN ('%s', '%s', '%s')",
|
||||||
|
|
|
@ -1770,7 +1770,7 @@ ul.dropdown-menu li:hover {
|
||||||
.allfriends-content-wrapper, .match-content-wrapper, .dirfind-content-wrapper,
|
.allfriends-content-wrapper, .match-content-wrapper, .dirfind-content-wrapper,
|
||||||
.directory-content-wrapper, .manage-content-wrapper, .notes-content-wrapper,
|
.directory-content-wrapper, .manage-content-wrapper, .notes-content-wrapper,
|
||||||
.message-content-wrapper, .apps-content-wrapper, .notifications-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);
|
min-height: calc(100vh - 150px);
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
|
Loading…
Reference in a new issue