Commit d7ad8f37 authored by Marius Cramer's avatar Marius Cramer
Browse files

- fixed mysql lib again

parent cb619732
......@@ -77,7 +77,7 @@ class db extends mysqli
if($this->_iConnId) mysqli_close($this->_iConnId);
}
private function connect() {
private function do_connect() {
if($this->_iConnId) return true;
$this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass);
......@@ -180,7 +180,7 @@ class db extends mysqli
private function _query($sQuery = '') {
global $app;
$this->connect();
$this->do_connect();
//if($this->isConnected == false) return false;
if ($sQuery == '') {
......
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