DBA: Deactivation of the mysqli-class for testing purposes.
This commit is contained in:
parent
ee714daf4d
commit
138caa4380
1 changed files with 31 additions and 30 deletions
|
@ -53,8 +53,9 @@ if(! class_exists('dba')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(class_exists('mysqli')) {
|
if(class_exists('mysqli')) {
|
||||||
$this->db = new mysqli($server,$user,$pass,$db);
|
$this->db = @new mysqli($server,$user,$pass,$db);
|
||||||
if(NULL === $this->db->connect_error) {
|
//if(NULL === $this->db->connect_error) {
|
||||||
|
if(!$this->db->connect_error) {
|
||||||
$this->connected = true;
|
$this->connected = true;
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException($this->db->connect_error);
|
throw new RuntimeException($this->db->connect_error);
|
||||||
|
|
Loading…
Reference in a new issue