aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-09 02:50:57 -0800
committerfriendica <info@friendica.com>2012-03-09 02:50:57 -0800
commit42d622d6bfb5768205573cb6b149340d28f46886 (patch)
tree04b1576b705c0b0a1851ef7f8cd70a46f0650059 /mod
parent2ce78253aeda8672e12f18f0963f52cd4a35e546 (diff)
downloadvolse-hubzilla-42d622d6bfb5768205573cb6b149340d28f46886.tar.gz
volse-hubzilla-42d622d6bfb5768205573cb6b149340d28f46886.tar.bz2
volse-hubzilla-42d622d6bfb5768205573cb6b149340d28f46886.zip
recover contacts total count which got lost
Diffstat (limited to 'mod')
-rwxr-xr-xmod/contacts.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index c99ac1452..001bf12af 100755
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -447,9 +447,10 @@ function contacts_content(&$a) {
$r = q("SELECT COUNT(*) AS `total` FROM `contact`
WHERE `uid` = %d AND `pending` = 0 $sql_extra $sql_extra2 ",
intval($_SESSION['uid']));
- if(count($r))
+ if(count($r)) {
$a->set_pager_total($r[0]['total']);
-
+ $total = $r[0]['total'];
+ }
@@ -518,7 +519,7 @@ function contacts_content(&$a) {
$o .= replace_macros($tpl,array(
'$header' => t('Contacts') . (($nets) ? ' - ' . network_to_name($nets) : ''),
'$tabs' => $t,
- '$total' => $r[0]['total'],
+ '$total' => $total,
'$search' => $search_hdr,
'$desc' => t('Search your contacts'),
'$finding' => (strlen($search) ? t('Finding: ') . "'" . $search . "'" : ""),