update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -79,9 +79,9 @@ class DBMysql implements DBConnection {
|
||||
protected function DbConnect() {
|
||||
//echo"konekt";
|
||||
Profiler::log('mysqlStart', '', microtime());
|
||||
$this->dbh = new mysqli($this->dbHost, $this->user, $this->pass, $this->dbName);
|
||||
$this->dbh = @new mysqli($this->dbHost, $this->user, $this->pass, $this->dbName);
|
||||
if ($this->dbh->connect_errno) {
|
||||
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
|
||||
throw new MysqlException("Failed to connect to MySQL: (" . $this->dbh->connect_errno . ") " . $this->dbh->connect_error, $this->dbh->connect_errno);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -346,6 +346,9 @@ class DBMysqlStatement implements DBStatement {
|
||||
$this->Execute();
|
||||
//var_dump($this->result);
|
||||
//Utils::ArrayDisplay($this);
|
||||
if (!($this->result instanceof mysqli_result)) {
|
||||
return false;
|
||||
}
|
||||
$result = \mysqli_fetch_assoc($this->result);
|
||||
}
|
||||
|
||||
@@ -353,6 +356,9 @@ class DBMysqlStatement implements DBStatement {
|
||||
|
||||
//$this->dbMysql->Connect(__METHOD__);
|
||||
$this->Execute();
|
||||
if (!($this->result instanceof mysqli_result)) {
|
||||
return false;
|
||||
}
|
||||
$result = mysqli_fetch_assoc($this->result);
|
||||
$this->CacheWrite($result);
|
||||
} else {
|
||||
@@ -701,4 +707,4 @@ class DBProd extends DBMysql {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user