Marius Cramer
2015-04-16 40c6e8fd1822039f57b775488aaf7de58e490adb
- fix for installer mysql lib
1 files modified
14 ■■■■ changed files
install/lib/mysql.lib.php 14 ●●●● patch | view | raw | blame | history
install/lib/mysql.lib.php
@@ -71,6 +71,14 @@
        $this->dbCharset = $conf["mysql"]["charset"];
        $this->dbNewLink = false;
        $this->dbClientFlags = null;
    }
    public function __destruct() {
        if($this->_iConnId) mysqli_close($this->_iConnId);
    }
    private function connect() {
        if($this->_iConnId) return true;
        $this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass);
        $try = 0;
@@ -93,10 +101,6 @@
        }
        $this->_setCharset();
    }
    public function __destruct() {
        if($this->_iConnId) mysqli_close($this->_iConnId);
    }
    public function close() {
@@ -176,6 +180,8 @@
    private function _query($sQuery = '') {
        global $app;
        $this->connect();
        //if($this->isConnected == false) return false;
        if ($sQuery == '') {
            $this->_sqlerror('Keine Anfrage angegeben / No query given');