Marius Cramer
2014-12-19 ccfc84e610de6a58eeb3b8f49209b82a9124c309
- Fixed missing quotes on db selection
2 files modified
4 ■■■■ changed files
interface/lib/classes/db_mysql.inc.php 2 ●●● patch | view | raw | blame | history
server/lib/classes/db_mysql.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/db_mysql.inc.php
@@ -86,7 +86,7 @@
            $this->_sqlerror('Zugriff auf Datenbankserver fehlgeschlagen! / Database server not accessible!');
            return false;
        }
        if(!((bool)mysqli_query( $this->_iConnId, "USE $this->dbName"))) {
        if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
            $this->close();
            $this->_sqlerror('Datenbank nicht gefunden / Database not found');
            return false;
server/lib/classes/db_mysql.inc.php
@@ -86,7 +86,7 @@
            $this->_sqlerror('Zugriff auf Datenbankserver fehlgeschlagen! / Database server not accessible!');
            return false;
        }
        if(!((bool)mysqli_query( $this->_iConnId, "USE $this->dbName"))) {
        if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
            $this->close();
            $this->_sqlerror('Datenbank nicht gefunden / Database not found');
            return false;