X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=1b60071534c5df978ca5a9beea8e5e5adb5bd284;hb=992684c3620185da00663e25eb1460c4b18920ea;hp=335547d74b34e2de9deb2175afc3c25d03efde48;hpb=ebc04e85060574e04a7bf7c9e758e736f498ad94;p=friendica.git diff --git a/index.php b/index.php index 335547d74b..1b60071534 100644 --- a/index.php +++ b/index.php @@ -432,7 +432,7 @@ else $a->page['htmlhead'] = str_replace('{{$stylesheet}}',$stylesheet,$a->page['htmlhead']); //$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet)); -if (($_GET["mode"] == "raw") OR ($_GET["mode"] == "minimal")) { +if (isset($_GET["mode"]) AND (($_GET["mode"] == "raw") OR ($_GET["mode"] == "minimal"))) { $doc = new DOMDocument(); $target = new DOMDocument(); @@ -455,7 +455,7 @@ if (($_GET["mode"] == "raw") OR ($_GET["mode"] == "minimal")) { } } -if ($_GET["mode"] == "raw") { +if (isset($_GET["mode"]) AND ($_GET["mode"] == "raw")) { header("Content-type: text/html; charset=utf-8"); @@ -528,7 +528,7 @@ $profile = $a->profile; header("Content-type: text/html; charset=utf-8"); -if ($_GET["mode"] == "minimal") { +if (isset($_GET["mode"]) AND ($_GET["mode"] == "minimal")) { //$page['content'] = substr($target->saveHTML(), 6, -8)."\n\n". // '
'."\n\n";