Skip to content

Commit

Permalink
replaced check with outcome of function isSupported()
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed May 31, 2014
1 parent 3ae8372 commit d46d5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/cache/storage/redis.php
Expand Up @@ -61,7 +61,7 @@ public function __construct($options = array())
*/
protected function getConnection()
{
if ((class_exists('Redis')) != true)
if ($this->isSupported()) != true)
{
return false;
}
Expand Down Expand Up @@ -244,4 +244,4 @@ public static function isSupported()
return true;
}
}
}
}

0 comments on commit d46d5a3

Please sign in to comment.