summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2013-12-26 17:31:05 +0100
committerPhilip Häusler <msquare@notrademark.de>2013-12-26 17:31:05 +0100
commita5fbc7fbd53705df367e5e0d53039d738fb7ce78 (patch)
tree66ba17e87519a32a339e4cb224407b5dfcd16ef6
parent161c04a2068cc95f0845c2874bd0a8ec87512636 (diff)
fix news start page bug, not showing always news
-rw-r--r--public/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index 93b16b17..b8c2b139 100644
--- a/public/index.php
+++ b/public/index.php
@@ -70,7 +70,7 @@ $free_pages = array(
);
// Gewünschte Seite/Funktion
-if (! isset($_REQUEST['news']))
+if (! isset($_REQUEST['p']))
$_REQUEST['p'] = isset($user) ? "news" : "login";
if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (in_array($_REQUEST['p'], $free_pages) || in_array($_REQUEST['p'], $privileges))) {
$p = $_REQUEST['p'];