mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
viewcontacts - make the tabbar available even if hide-friends is active
This commit is contained in:
parent
9f99f37975
commit
06959d745e
2 changed files with 6 additions and 6 deletions
|
@ -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')",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue