fix - pending contacts shouldn't be shown in contacts widgit and viewcontacts
This commit is contained in:
parent
8d2c74eb3c
commit
3474b40732
4 changed files with 14 additions and 8 deletions
|
|
@ -374,7 +374,10 @@ function profile_sidebar($profile, $block = 0) {
|
|||
if (dbm::is_result($r))
|
||||
$updated = date("c", strtotime($r[0]['updated']));
|
||||
|
||||
$r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `hidden` AND NOT `archive`
|
||||
$r = q("SELECT COUNT(*) AS `total` FROM `contact`
|
||||
WHERE `uid` = %d
|
||||
AND NOT `self` AND NOT `blocked` AND NOT `pending`
|
||||
AND NOT `hidden` AND NOT `archive`
|
||||
AND `network` IN ('%s', '%s', '%s', '')",
|
||||
intval($profile['uid']),
|
||||
dbesc(NETWORK_DFRN),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue