Do not hide errors from our code
This should not emit any PHP warnings at all. Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
65052df07f
commit
8a764f1a6e
@ -176,7 +176,7 @@ class DBIMysqli implements DBIExtension
|
||||
}
|
||||
|
||||
if (! $server) {
|
||||
$return_value = @$this->_realConnect(
|
||||
$return_value = $this->_realConnect(
|
||||
$link,
|
||||
$cfg['Server']['host'],
|
||||
$user,
|
||||
@ -192,7 +192,7 @@ class DBIMysqli implements DBIExtension
|
||||
&& $cfg['Server']['nopassword']
|
||||
&& ! $is_controluser
|
||||
) {
|
||||
$return_value = @$this->_realConnect(
|
||||
$return_value = $this->_realConnect(
|
||||
$link,
|
||||
$cfg['Server']['host'],
|
||||
$user,
|
||||
@ -204,7 +204,7 @@ class DBIMysqli implements DBIExtension
|
||||
);
|
||||
}
|
||||
} else {
|
||||
$return_value = @$this->_realConnect(
|
||||
$return_value = $this->_realConnect(
|
||||
$link,
|
||||
$server['host'],
|
||||
$user,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user