Use function is_object()

This commit is contained in:
Vyacheslav Agafonov
2011-12-01 19:36:04 +04:00
parent 79c541aa78
commit fb127900e1
2 changed files with 2 additions and 3 deletions

View File

@ -31,8 +31,7 @@ class RedisManager
{
if (!isset(self::$connections[$name])) {
if (!$config) {
if (gettype(Config::get('Redis')) != 'object') {
if (!is_object(Config::get('Redis'))) {
throw new GeneralException('Redis config no existence');
}
$config = Config::get('Redis')->$name;