X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fremove_contact.php;h=9d4b1e4c3709214f56bf74d77c85c35aeaa9a8dc;hb=cdc41d6018e8e564b545e3c2eb6c77602c5ff2b4;hp=a3938ad8ecbe390a7d52b612efea226963607d0a;hpb=fa3fa42d966e00534aa6cbf33d60ef438a8e3b97;p=friendica.git diff --git a/include/remove_contact.php b/include/remove_contact.php index a3938ad8ec..9d4b1e4c37 100644 --- a/include/remove_contact.php +++ b/include/remove_contact.php @@ -14,8 +14,8 @@ 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)); - if (dbm::is_result($r)) { + $r = dba::exists('contact', array('id' => $id)); + if ($r) { return; }