From d46d5a3e2f4a3ae229f3c10d6425d244eb46281b Mon Sep 17 00:00:00 2001 From: Hans Kuijpers Date: Sat, 31 May 2014 14:32:26 +0200 Subject: [PATCH] replaced check with outcome of function isSupported() --- libraries/joomla/cache/storage/redis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/joomla/cache/storage/redis.php b/libraries/joomla/cache/storage/redis.php index 46194168ef632..6153dbe94dbef 100644 --- a/libraries/joomla/cache/storage/redis.php +++ b/libraries/joomla/cache/storage/redis.php @@ -61,7 +61,7 @@ public function __construct($options = array()) */ protected function getConnection() { - if ((class_exists('Redis')) != true) + if ($this->isSupported()) != true) { return false; } @@ -244,4 +244,4 @@ public static function isSupported() return true; } } -} \ No newline at end of file +}