Don't silence errors when connecting to database
This commit is contained in:
parent
d19de02591
commit
ff38a84129
|
|
@ -35,9 +35,9 @@ class DbMysql implements DbEngine {
|
||||||
$this->isConnected = false;
|
$this->isConnected = false;
|
||||||
|
|
||||||
if (@constant('APP_DB_PERMANENT')) {
|
if (@constant('APP_DB_PERMANENT')) {
|
||||||
$this->dblink = @mysql_pconnect($this->host,$this->user,$this->pass);
|
$this->dblink = mysql_pconnect($this->host,$this->user,$this->pass);
|
||||||
} else {
|
} else {
|
||||||
$this->dblink = @mysql_connect($this->host,$this->user,$this->pass);
|
$this->dblink = mysql_connect($this->host,$this->user,$this->pass);
|
||||||
}
|
}
|
||||||
if (!$this->dblink) {
|
if (!$this->dblink) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue