X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fignored.php;h=64edf6e151c17d7a6dac97ee727259d016ef6883;hb=e9b7b812325b541836e2166ba54575692afc60d9;hp=4f14119fef876d792e9b3f1e684139a09fb9812f;hpb=dbe49a0c1ad0467c2e12e363aac5635a1f11a3ea;p=friendica.git diff --git a/mod/ignored.php b/mod/ignored.php index 4f14119fef..64edf6e151 100644 --- a/mod/ignored.php +++ b/mod/ignored.php @@ -1,27 +1,26 @@ argc > 1) { $message_id = intval($a->argv[1]); } - if (!$message_id) { - killme(); + if (empty($message_id)) { + exit(); } $thread = Item::selectFirstThreadForUser(local_user(), ['uid', 'ignored'], ['iid' => $message_id]); if (!DBA::isResult($thread)) { - killme(); + exit(); } // Numeric values are needed for the json output further below @@ -49,5 +48,5 @@ function ignored_init(App $a) // the json doesn't really matter, it will either be 0 or 1 echo json_encode($ignored); - killme(); + exit(); }