]> git.mxchange.org Git - friendica.git/blobdiff - include/remove_contact.php
Spool items that couldn't be stored
[friendica.git] / include / remove_contact.php
index 153b98805a226b775b69bd787cd411777fb0c2d8..ec8b83eab933809261455d1ed65447072bf7b033 100644 (file)
@@ -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));