diff --git a/install/lib/mysql.lib.php b/install/lib/mysql.lib.php
index e151bc417d7d8385ab8aabdf8b9f4eb6c89816d0..c0f7317963520c81ea9709392ec2fe7c74193cc7 100644
--- a/install/lib/mysql.lib.php
+++ b/install/lib/mysql.lib.php
@@ -60,10 +60,14 @@ class db extends mysqli
 	////
 	*/
 
-	// constructor
-	public function __construct($host = NULL , $user = NULL, $pass = NULL, $database = NULL) {
+	public function __destruct() {
+		if($this->_iConnId) mysqli_close($this->_iConnId);
+	}
+	
+	private function do_connect() {
 		global $conf;
-
+		
+		if($this->_iConnId) return true;
 		$this->dbHost = $conf["mysql"]["host"];
 		$this->dbName = '';
 		$this->dbUser = $conf["mysql"]["admin_user"];
@@ -71,14 +75,6 @@ class db extends mysqli
 		$this->dbCharset = $conf["mysql"]["charset"];
 		$this->dbNewLink = false;
 		$this->dbClientFlags = null;
-	}
-
-	public function __destruct() {
-		if($this->_iConnId) mysqli_close($this->_iConnId);
-	}
-	
-	private function do_connect() {
-		if($this->_iConnId) return true;
 		
 		$this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass);
 		$try = 0;