X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fremove_contact.php;h=ec8b83eab933809261455d1ed65447072bf7b033;hb=eff4ad2e0ac70bc8a07a7c335d503197e7b26c70;hp=153b98805a226b775b69bd787cd411777fb0c2d8;hpb=a38a5019d05e95add3375c52f8f509b99e92cd72;p=friendica.git diff --git a/include/remove_contact.php b/include/remove_contact.php index 153b98805a..ec8b83eab9 100644 --- a/include/remove_contact.php +++ b/include/remove_contact.php @@ -8,8 +8,9 @@ require_once("boot.php"); function remove_contact_run($argv, $argc) { global $a, $db; - if (is_null($a)) + if (is_null($a)) { $a = new App; + } if (is_null($db)) { @include(".htconfig.php"); @@ -33,7 +34,6 @@ function remove_contact_run($argv, $argc) { return; } -die("Blubb ".$id); q("DELETE FROM `item` WHERE `contact-id` = %d", intval($id)); q("DELETE FROM `photo` WHERE `contact-id` = %d", intval($id));