Skip to content
Snippets Groups Projects
Commit 3e783660 authored by Marius Cramer's avatar Marius Cramer
Browse files

Merge branch 'master' into 'master'

mysql master-db during multiserver-setup / update

See merge request !217
parents 37b29231 772dad9f
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment