|
@ -37,7 +37,7 @@ class Db |
|
|
if (!isset(self::$connections[$name])) { |
|
|
if (!isset(self::$connections[$name])) { |
|
|
if (!$config) { |
|
|
if (!$config) { |
|
|
if (gettype(Config::get(__CLASS__)) != 'object') { |
|
|
if (gettype(Config::get(__CLASS__)) != 'object') { |
|
|
throw new InitializationException('config no object'); |
|
|
|
|
|
|
|
|
throw new InitializationException('Trying to get property of non-object'); |
|
|
} |
|
|
} |
|
|
$config = Config::get(__CLASS__)->$name; |
|
|
$config = Config::get(__CLASS__)->$name; |
|
|
} |
|
|
} |
|
|