aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-30 06:09:20 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-30 06:09:20 -0700
commitb399b20dee2752a038a64a8be2c89df142aae280 (patch)
treed94e361d0ec77efa3b0ceade9b762f6595bbc7eb /mod/contacts.php
parentf83aa6c8a57e0ba9be2cd5842899488a4c2a8514 (diff)
downloadvolse-hubzilla-b399b20dee2752a038a64a8be2c89df142aae280.tar.gz
volse-hubzilla-b399b20dee2752a038a64a8be2c89df142aae280.tar.bz2
volse-hubzilla-b399b20dee2752a038a64a8be2c89df142aae280.zip
mail, i18n, etc.
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 489da2340..1e3cb8f06 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -234,6 +234,12 @@ function contacts_content(&$a) {
break;
}
+ $r = q("SELECT COUNT(*) AS `total` FROM `contact`
+ WHERE `uid` = %d AND `pending` = 0 $sql_extra $sql_extra2 ",
+ intval($_SESSION['uid']));
+ if(count($r))
+ $a->set_pager_total($r[0]['total']);
+
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `pending` = 0 $sql_extra $sql_extra2 ",
intval($_SESSION['uid']));
@@ -275,6 +281,8 @@ function contacts_content(&$a) {
));
}
$o .= '<div id="contact-edit-end"></div>';
+ $o .= paginate($a);
+
}
return $o;
} \ No newline at end of file