Commit 3e783660 authored by Marius Cramer's avatar Marius Cramer

Merge branch 'master' into 'master'

mysql master-db during multiserver-setup / update

See merge request !217
parents 37b29231 772dad9f
......@@ -104,6 +104,7 @@ class db extends mysqli
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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment