aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-04 20:49:11 -0700
committerFriendika <info@friendika.com>2011-05-04 20:49:11 -0700
commit5f0b43485a9bab882f6ac6a0c7c7667f9f2a188a (patch)
treebc783afe8824147110263c8d708a29c0b30ae714 /mod/network.php
parent59fd70e568fbc93922769333c55d8c1fa72cea9d (diff)
downloadvolse-hubzilla-5f0b43485a9bab882f6ac6a0c7c7667f9f2a188a.tar.gz
volse-hubzilla-5f0b43485a9bab882f6ac6a0c7c7667f9f2a188a.tar.bz2
volse-hubzilla-5f0b43485a9bab882f6ac6a0c7c7667f9f2a188a.zip
incorrect count of total pages in normal view mode
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/network.php b/mod/network.php
index 8846b8086..7ad5058bf 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -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'])
);