From d7f1c84e3e72ee77893fe08efac070b36df0ff76 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Sun, 29 Nov 2015 05:59:00 -0500
Subject: [PATCH] FS#3885 - LSI MegaRaid monitoring (code) (cwispy)

---
 install/lib/mysql.lib.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/install/lib/mysql.lib.php b/install/lib/mysql.lib.php
index c6078ca..11fd2ec 100644
--- a/install/lib/mysql.lib.php
+++ b/install/lib/mysql.lib.php
@@ -104,6 +104,7 @@
 	
 	public function setDBName($name) {
 		$this->dbName = $name;
+		$this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass);
 		if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
 			$this->close();
 			$this->_sqlerror('Datenbank nicht gefunden / Database not found');

--
Gitblit v1.9.1