1
0
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:
David Grudl
2006-08-25 18:10:30 +00:00
parent 2cc9fa22fb
commit 36b88503f9
7 changed files with 42 additions and 25 deletions

View File

@@ -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(