]> git.mxchange.org Git - friendica.git/blobdiff - mod/common.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / common.php
index e0cd655061748833e3ebe444abf4efaa06821427..ab27dc667a72dd990516561f4ff9b87cebcb6a89 100644 (file)
@@ -48,8 +48,9 @@ function common_content(App &$a) {
                $a->page['aside'] .= $vcard_widget;
        }
 
-       if(! count($c))
+       if (! dbm::is_result($c)) {
                return;
+       }
 
        if(! $cid) {
                if(get_my_url()) {
@@ -100,7 +101,7 @@ function common_content(App &$a) {
 
        $id = 0;
 
-       foreach($r as $rr) {
+       foreach ($r as $rr) {
 
                //get further details of the contact
                $contact_details = get_contact_details_by_url($rr['url'], $uid);