X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fremove_contact.php;h=9d4b1e4c3709214f56bf74d77c85c35aeaa9a8dc;hb=553428d1b197c73f845855cdfd46efe3614db032;hp=92f712255771bb05537801b2451b3533448ca89b;hpb=74479c4020499e6aa7866b5478366932b723c515;p=friendica.git diff --git a/include/remove_contact.php b/include/remove_contact.php index 92f7122557..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 = dba::select('contact', array('id'), array('id' => $id), array('limit' => 1)); - if (dbm::is_result($r)) { + $r = dba::exists('contact', array('id' => $id)); + if ($r) { return; }