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