Code

Only display each error once
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 Oct 2007 07:39:52 +0000 (07:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 Oct 2007 07:39:52 +0000 (07:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7544 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php

index 745a2d2d79994fe5407b9a2da70852befaad9113..be42f673adb53aaee3934352a44cd71c3f1eab9a 100644 (file)
@@ -62,10 +62,6 @@ if (!isset($_SESSION['config'])){
   exit;
 } 
 
-/* Reset errors */
-$_SESSION['errors']             = "";
-$_SESSION['errorsAlreadyPosted']= array();
-$_SESSION['LastError']          = "";
 
 /* Check for uniqe ip address */
 $ui= $_SESSION["ui"];
@@ -424,6 +420,7 @@ echo $display;
 /* Save plist and config */
 $_SESSION['plist']= $plist;
 $_SESSION['config']= $config;
+$_SESSION['errorsAlreadyPosted']= array();
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>