X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fignored.php;h=64edf6e151c17d7a6dac97ee727259d016ef6883;hb=bd13a73b2be3f14fa02f28d7848abffe596f9cc5;hp=4f14119fef876d792e9b3f1e684139a09fb9812f;hpb=8821d33f73785884cfce83e7b23d3ef19cc1bc11;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(); }