1
0
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:
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

@@ -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;
}