X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=42af1707dc4554f8c1eb296592b5a3cf810212c9;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=279f8635231591e8e2444fa54453aa12169023bc;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php index 279f863523..42af1707dc 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -13,7 +13,7 @@ function profile_init(&$a) { $which = htmlspecialchars($a->argv[1]); else { $r = q("select nickname from user where blocked = 0 and account_expired = 0 and account_removed = 0 and verified = 1 order by rand() limit 1"); - if(count($r)) { + if(dbm::is_result($r)) { goaway($a->get_baseurl() . '/profile/' . $r[0]['nickname']); } else { @@ -136,7 +136,7 @@ function profile_content(&$a, $update = 0) { intval($contact_id), intval($a->profile['profile_uid']) ); - if(count($r)) { + if(dbm::is_result($r)) { $contact = $r[0]; $remote_contact = true; } @@ -258,7 +258,7 @@ function profile_content(&$a, $update = 0) { intval($a->profile['profile_uid']) ); - if(count($r)) { + if(dbm::is_result($r)) { $a->set_pager_total($r[0]['total']); } }