X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcontact_widgets.php;h=e0a33eee08728fc7dbf7608fd7c30a8f4dd4862f;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=bbbd941b5609df3ae7321bc708599e17c6de4ccc;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/include/contact_widgets.php b/include/contact_widgets.php index bbbd941b56..e0a33eee08 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -93,7 +93,7 @@ function networks_widget($baseurl,$selected = '') { ); $nets = array(); - if(count($r)) { + if(dbm::is_result($r)) { require_once('include/contact_selectors.php'); foreach($r as $rr) { if($rr['network']) @@ -204,13 +204,13 @@ function common_friends_visitor_widget($profile_uid) { dbesc(normalise_link(get_my_url())), intval($profile_uid) ); - if(count($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(count($r)) + if(dbm::is_result($r)) $zcid = $r[0]['id']; } }