From 109dd9bc67ec575086a53e574d552ae140fc50bb Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 24 Apr 2006 03:58:14 +0000 Subject: [PATCH] Fixed white pages on login git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3081 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 5 +++++ html/main.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index ac88c7992..e1baef37c 100644 --- a/html/index.php +++ b/html/index.php @@ -28,6 +28,11 @@ header("Content-type: text/html; charset=UTF-8"); session_start (); $username= ""; +/* Reset errors */ +$_SESSION['errors'] = ""; +$_SESSION['errorsAlreadyPosted']= array(); +$_SESSION['LastError'] = ""; + /* Check if we need to run setup */ if (!file_exists(CONFIG_DIR."/gosa.conf")){ header("location:setup.php"); diff --git a/html/main.php b/html/main.php index 8471e3eea..8c096eb3b 100644 --- a/html/main.php +++ b/html/main.php @@ -53,9 +53,9 @@ if (!isset($_SESSION['config'])){ } /* Reset errors */ -$_SESSION['errors']= ""; +$_SESSION['errors'] = ""; $_SESSION['errorsAlreadyPosted']= array(); -$_SESSION['LastError'] =""; +$_SESSION['LastError'] = ""; /* Check for uniqe ip address */ $ui= $_SESSION["ui"]; -- 2.30.2