]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
DE translations
[friendica.git] / mod / display.php
index a9816b06cea4f582da32327406da37bc2352ce21..0d347882e2b16c95120a5fcbd4f16e5c146d96ab 100644 (file)
@@ -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();
                }
        }