X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Ffsuggest.php;h=8fc0f07deef7b8b6becee9cd7f2d2a849c6cfbf7;hb=6113fdc940d77fba1871463ee0c5a27e1f22eda7;hp=b3d5439712f5e7e9b9b1410ddee75cc056bf6d1e;hpb=63e2695d226d195c6a97e1045d6b174591dd2487;p=friendica.git diff --git a/mod/fsuggest.php b/mod/fsuggest.php index b3d5439712..8fc0f07dee 100644 --- a/mod/fsuggest.php +++ b/mod/fsuggest.php @@ -1,8 +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 = '