X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcommon.php;h=12f1ba27371d5489d241b88f4a0033919aa0d8a9;hb=9e99066fd70a9dd9a291a523afba1a390f0e3a0b;hp=26ef7e48b782af922433c3eb4f1a8fb4515649f2;hpb=13b57d4d5091531284ece6a39fc74a0a2642efb1;p=friendica.git diff --git a/mod/common.php b/mod/common.php index 26ef7e48b7..12f1ba2737 100644 --- a/mod/common.php +++ b/mod/common.php @@ -1,11 +1,14 @@ page['aside'] = ""; profile_load($a, "", 0, get_contact_details_by_url($c[0]["url"])); } else { $c = q("SELECT `name`, `url`, `photo` FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1", intval($uid) ); - /// @TODO Handle $c with dbm::is_result() + /// @TODO Handle $c with DBM::is_result() $vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array( '$name' => htmlentities($c[0]['name']), @@ -53,7 +56,7 @@ function common_content(App &$a) { $a->page['aside'] .= $vcard_widget; } - if (! dbm::is_result($c)) { + if (! DBM::is_result($c)) { return; } @@ -63,13 +66,13 @@ function common_content(App &$a) { dbesc(normalise_link(get_my_url())), intval($profile_uid) ); - if (dbm::is_result($r)) + if (DBM::is_result($r)) $cid = $r[0]['id']; else { $r = q("SELECT `id` FROM `gcontact` WHERE `nurl` = '%s' LIMIT 1", dbesc(normalise_link(get_my_url())) ); - if (dbm::is_result($r)) + if (DBM::is_result($r)) $zcid = $r[0]['id']; } } @@ -100,7 +103,7 @@ function common_content(App &$a) { } - if (! dbm::is_result($r)) { + if (! DBM::is_result($r)) { return $o; }