diff options
author | Tobias Hößl <tobias@hoessl.eu> | 2012-03-11 11:27:47 +0000 |
---|---|---|
committer | Tobias Hößl <tobias@hoessl.eu> | 2012-03-11 11:27:47 +0000 |
commit | 4df08433c6dcf5c88945e064da74188c805c5d68 (patch) | |
tree | ee482f76941fbb26b77a53147def83b32c8eaa7b /mod/contacts.php | |
parent | 635958e11da2f5a0d587b66968453064c2d41f13 (diff) | |
parent | 50863a19eb9c74ca336df609dbb9dfe5a9c39a31 (diff) | |
download | volse-hubzilla-4df08433c6dcf5c88945e064da74188c805c5d68.tar.gz volse-hubzilla-4df08433c6dcf5c88945e064da74188c805c5d68.tar.bz2 volse-hubzilla-4df08433c6dcf5c88945e064da74188c805c5d68.zip |
Merge branch 'master' of git://github.com/friendica/friendica
Diffstat (limited to 'mod/contacts.php')
-rwxr-xr-x | mod/contacts.php | 7 |
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 . "'" : ""), |