diff --git a/core/model/DB.php b/core/model/DB.php index 2d4300cc1..412cd254c 100755 --- a/core/model/DB.php +++ b/core/model/DB.php @@ -44,7 +44,9 @@ class DB { * @return Database */ static function getConn($name = 'default') { - return self::$connections[$name]; + if(isset(self::$connections[$name])) { + return self::$connections[$name]; + } } /**