Don't silence errors when connecting to database

This commit is contained in:
yysa 2014-11-10 21:08:35 +01:00
parent d19de02591
commit ff38a84129
1 changed files with 3 additions and 3 deletions

View File

@ -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;
@ -157,4 +157,4 @@ class DbMysql implements DbEngine {
return mysql_error(); return mysql_error();
} }
} }