X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fremove_contact.php;h=92f712255771bb05537801b2451b3533448ca89b;hb=8cb4a8d0c420dc7c7fe9b96a43b78016c105a8fc;hp=a3938ad8ecbe390a7d52b612efea226963607d0a;hpb=1c38540f20b3207a0fd09ef0802125e45e83bcf6;p=friendica.git diff --git a/include/remove_contact.php b/include/remove_contact.php index a3938ad8ec..92f7122557 100644 --- a/include/remove_contact.php +++ b/include/remove_contact.php @@ -14,7 +14,7 @@ function remove_contact_run($argv, $argc) { $id = intval($argv[1]); // Only delete if the contact doesn't exist (anymore) - $r = q("SELECT `id` FROM `contact` WHERE `id` = %d", intval($id)); + $r = dba::select('contact', array('id'), array('id' => $id), array('limit' => 1)); if (dbm::is_result($r)) { return; }