X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Ffsuggest.php;h=35710bb338d0139717ed133228d3bcaf3bd53222;hb=f2ca3e5be44192c486e8e3af2a993e065ad40a7d;hp=32ed63b4c20ae75ed3207ab99df74b541848b500;hpb=7a9456d5ac2e73229b2237074c700731c63661a6;p=friendica.git diff --git a/mod/fsuggest.php b/mod/fsuggest.php index 32ed63b4c2..35710bb338 100644 --- a/mod/fsuggest.php +++ b/mod/fsuggest.php @@ -1,9 +1,17 @@ argc != 2) + if ($a->argc != 2) { return; + } $contact_id = intval($a->argv[1]); - $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q( + "SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($contact_id), intval(local_user()) ); - if (! dbm::is_result($r)) { - notice( t('Contact not found.') . EOL); + if (! DBA::isResult($r)) { + notice(L10n::t('Contact not found.') . EOL); return; } $contact = $r[0]; - $o = '