X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=0d347882e2b16c95120a5fcbd4f16e5c146d96ab;hb=28eb5d57a72aae22428061b26b90195f7feacadf;hp=a9816b06cea4f582da32327406da37bc2352ce21;hpb=1838024f6d60674faf2bf08a736d0f81bcc49425;p=friendica.git diff --git a/mod/display.php b/mod/display.php index a9816b06ce..0d347882e2 100644 --- a/mod/display.php +++ b/mod/display.php @@ -17,9 +17,12 @@ function display_init(App $a) { if (substr($a->argv[2], -5) == '.atom') { $item_id = substr($a->argv[2], 0, -5); $xml = dfrn::itemFeed($item_id); + if ($xml == '') { + http_status_exit(500); + } header("Content-type: application/atom+xml"); echo $xml; - http_status_exit(($xml) ? 200 : 500); + killme(); } }