incorrect count of total pages in normal view mode
This commit is contained in:
parent
59fd70e568
commit
5f0b43485a
2 changed files with 3 additions and 1 deletions
|
@ -164,11 +164,13 @@ function network_content(&$a, $update = 0) {
|
|||
if((! $group) && (! $cid) && (! $update))
|
||||
$o .= get_birthdays();
|
||||
|
||||
$sql_extra2 = (($nouveau) ? '' : " AND `item`.`parent` = `item`.`id` ");
|
||||
|
||||
$r = q("SELECT COUNT(*) AS `total`
|
||||
FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||
WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
|
||||
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
|
||||
$sql_extra2
|
||||
$sql_extra ",
|
||||
intval($_SESSION['uid'])
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue