X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcontact_selectors.php;h=0790e503ea3d24cef132442f8e949dac98e5333d;hb=e24c3a5b826d2357e40a173d9e7b66048dab5b37;hp=35c9d983d72797f49ac49f46da496d93d1bfed48;hpb=287c9cfbdd156ddc4edbea6b9b76d950071aaf04;p=friendica.git diff --git a/include/contact_selectors.php b/include/contact_selectors.php index 35c9d983d7..0790e503ea 100644 --- a/include/contact_selectors.php +++ b/include/contact_selectors.php @@ -12,7 +12,7 @@ function contact_profile_assign($current,$foreign_net) { $r = q("SELECT `id`, `profile-name` FROM `profile` WHERE `uid` = %d", intval($_SESSION['uid'])); - if(count($r)) { + if (dbm::is_result($r)) { foreach($r as $rr) { $selected = (($rr['id'] == $current) ? " selected=\"selected\" " : ""); $o .= "\r\n";