From e615265d3b51e27f0f664cea193b6353975d6f7d Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 29 Aug 2011 04:25:44 -0400
Subject: [PATCH] Fixed php notice in session library.

---
 server/lib/classes/db_mysql.inc.php |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php
index 2c113b5..7e0c561 100644
--- a/server/lib/classes/db_mysql.inc.php
+++ b/server/lib/classes/db_mysql.inc.php
@@ -45,8 +45,7 @@
 		var $show_error_messages = true;
 
 		// constructor
-		function db()
-		{
+		public function __construct() {
 			
 			global $conf;
 			$this->dbHost = $conf['db_host'];
@@ -56,6 +55,10 @@
 			$this->dbCharset = $conf['db_charset'];
 			//$this->connect();
 		}
+		
+		public function __destruct() {
+			$this->closeConn();
+		}
 
 		// error handler
 		function updateError($location)

--
Gitblit v1.9.1