fix news start page bug, not showing always news

This commit is contained in:
Philip Häusler 2013-12-26 17:29:29 +01:00
parent b34a71e20d
commit 161c04a206
1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ $free_pages = array(
); );
// Gewünschte Seite/Funktion // Gewünschte Seite/Funktion
if (! isset($_REQUEST['news']))
$_REQUEST['p'] = isset($user) ? "news" : "login"; $_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))) { 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']; $p = $_REQUEST['p'];