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