mirror of
https://github.com/dg/dibi.git
synced 2025-10-23 02:36:04 +02:00
remove operator @ in connect() methods
This commit is contained in:
@@ -48,7 +48,10 @@ class DibiMySqliDriver extends DibiDriver {
|
||||
|
||||
if (empty($config['host'])) $config['host'] = 'localhost';
|
||||
|
||||
$conn = @mysqli_connect($config['host'], @$config['username'], @$config['password'], @$config['database'], @$config['port']);
|
||||
foreach (array('username', 'password', 'database', 'port') as $var)
|
||||
if (!isset($config[$var])) $config[$var] = NULL;
|
||||
|
||||
$conn = @mysqli_connect($config['host'], $config['username'], $config['password'], $config['database'], $config['port']);
|
||||
|
||||
if (!$conn)
|
||||
return new DibiException("Connecting error", array(
|
||||
|
Reference in New Issue
Block a user