diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-12-26 17:29:29 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-12-26 17:29:29 +0100 |
commit | 161c04a2068cc95f0845c2874bd0a8ec87512636 (patch) | |
tree | 08727745f63d17fb5ef17183702f7ef96ab2101b /public | |
parent | b34a71e20d789b281ca38c41376344f67dd8795d (diff) |
fix news start page bug, not showing always news
Diffstat (limited to 'public')
-rw-r--r-- | public/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 51aa946c..93b16b17 100644 --- a/public/index.php +++ b/public/index.php @@ -70,7 +70,8 @@ $free_pages = array( ); // Gewünschte Seite/Funktion -$_REQUEST['p'] = isset($user) ? "news" : "login"; +if (! isset($_REQUEST['news'])) + $_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']; |