From 83a793baa74fde7de81ee96430e7b6e39968efbe Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 25 Sep 2010 11:57:41 -0400
Subject: [PATCH] Improved the session handler so that it does not write unchanged sessions to database.

---
 interface/lib/classes/auth.inc.php |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/interface/lib/classes/auth.inc.php b/interface/lib/classes/auth.inc.php
index 0315ed9..20094cf 100644
--- a/interface/lib/classes/auth.inc.php
+++ b/interface/lib/classes/auth.inc.php
@@ -89,10 +89,9 @@
 		if(!$this->client_limits)
 			return -1;
 		
-		if(isset($this->client_limits['limit_'.$limitname]))
+		if(isset($this->client_limits['limit_'.$limitname])) {
 			return $this->client_limits['limit_'.$limitname];
-		else
-			trigger_error('Wrong limit identifier');		
+		}		
 	}	
 	
 	//** This function removes a given group id from a given user.

--
Gitblit v1.9.1