X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Ffsuggest.php;h=8fc0f07deef7b8b6becee9cd7f2d2a849c6cfbf7;hb=7529fc61dd9169368224a092bcdf7d3cfeee1982;hp=32ed63b4c20ae75ed3207ab99df74b541848b500;hpb=7a9456d5ac2e73229b2237074c700731c63661a6;p=friendica.git diff --git a/mod/fsuggest.php b/mod/fsuggest.php index 32ed63b4c2..8fc0f07dee 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 = '