From: hickert Date: Wed, 10 May 2006 07:16:28 +0000 (+0000) Subject: Fixed limit_exceeded: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31e984c561a5f9ef165b7bc705e4764257c5ceca;p=gosa.git Fixed limit_exceeded: If the last search was successfull performed, but one search before failed, no size limit message was shown, because the session value was overwritten by the successfull last search/ls. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3250 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 160017b6b..6fefa08a2 100644 --- a/html/main.php +++ b/html/main.php @@ -47,6 +47,8 @@ ini_set("session.gc_maxlifetime",24*60*60); /* Remember everything we did after the last click */ session_start (); +$_SESSION['limit_exceeded'] =FALSE; + if ($_SERVER["REQUEST_METHOD"] == "POST"){ @DEBUG (DEBUG_POST, __LINE__, __FUNCTION__, __FILE__, $_POST, "_POST"); } diff --git a/include/functions.inc b/include/functions.inc index 852942761..94ec5b80d 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -514,8 +514,6 @@ function get_list($filter, $subtreeACL, $base= "", $attributes= array(), $flags= /* Check for size limit exceeded messages for GUI feedback */ if (preg_match("/size limit/i", $ldap->error)){ $_SESSION['limit_exceeded']= TRUE; - } else { - $_SESSION['limit_exceeded']= FALSE; } /* Crawl through reslut entries and perform the migration to the