X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fignored.php;h=64edf6e151c17d7a6dac97ee727259d016ef6883;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=c433313165de7dea99932fa0700643ec2f0c0016;hpb=2ef81108b37a85642e1f3380044a03cb1cd8719a;p=friendica.git diff --git a/mod/ignored.php b/mod/ignored.php index c433313165..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 @@ -43,11 +42,11 @@ function ignored_init(App $a) $rand = "?$rand"; } - $a->redirect($return_path . $rand); + $a->internalRedirect($return_path . $rand); } // the json doesn't really matter, it will either be 0 or 1 echo json_encode($ignored); - killme(); + exit(); }