mirror of
https://github.com/dg/dibi.git
synced 2025-08-31 09:41:43 +02:00
remove operator @ in connect() methods
This commit is contained in:
@@ -204,9 +204,13 @@ class dibi
|
||||
*/
|
||||
static public function getConnection($name = NULL)
|
||||
{
|
||||
return NULL === $name
|
||||
? self::$conn
|
||||
: @self::$registry[$name];
|
||||
if (NULL === $name)
|
||||
return self::$conn;
|
||||
|
||||
if (isset(self::$registry[$name]))
|
||||
return self::$registry[$name];
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user