]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
BBCode - fixed syntax error
[friendica.git] / src / App.php
index 6421a4c21299b5f244a20e52668aa84e6813b127..0015405c46bea5892cc634282f50c6c87d62d3f8 100644 (file)
@@ -1869,14 +1869,14 @@ class App
                                // And then append it to the target
                                $target->documentElement->appendChild($item);
                        }
-               }
 
-               if (isset($_GET["mode"]) && ($_GET["mode"] == "raw")) {
-                       header("Content-type: text/html; charset=utf-8");
+                       if ($_GET["mode"] == "raw") {
+                               header("Content-type: text/html; charset=utf-8");
 
-                       echo substr($target->saveHTML(), 6, -8);
+                               echo substr($target->saveHTML(), 6, -8);
 
-                       exit();
+                               exit();
+                       }
                }
 
                $page    = $this->page;