Marius Cramer
2015-04-16 5eafbcd5cfa99b624af7534fce798cbac29c3fbb
install/lib/mysql.lib.php
@@ -60,10 +60,14 @@
   ////
   */
   // constructor
   public function __construct($host = NULL , $user = NULL, $pass = NULL, $database = NULL) {
   public function __destruct() {
      if($this->_iConnId) mysqli_close($this->_iConnId);
   }
   private function do_connect() {
      global $conf;
      if($this->_iConnId) return true;
      $this->dbHost = $conf["mysql"]["host"];
      $this->dbName = '';
      $this->dbUser = $conf["mysql"]["admin_user"];
@@ -71,14 +75,6 @@
      $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;
@@ -180,7 +176,7 @@
   private function _query($sQuery = '') {
      global $app;
      $this->connect();
      $this->do_connect();
      //if($this->isConnected == false) return false;
      if ($sQuery == '') {