]> git.mxchange.org Git - friendica.git/blobdiff - mod/common.php
Hide the calculation for "previous" and "next" behind a setting
[friendica.git] / mod / common.php
index 9657ac36d80afb8f83023163f07c33f077ab9377..5a40663f9eb6445e48f44d5c4e82ac08639e9dc9 100644 (file)
@@ -5,7 +5,7 @@ require_once('include/Contact.php');
 require_once('include/contact_selectors.php');
 require_once('mod/contacts.php');
 
-function common_content(&$a) {
+function common_content(App $a) {
 
        $o = '';
 
@@ -53,8 +53,9 @@ function common_content(&$a) {
                $a->page['aside'] .= $vcard_widget;
        }
 
-       if(! count($c))
+       if (! dbm::is_result($c)) {
                return;
+       }
 
        if(! $cid) {
                if(get_my_url()) {