From 6f26ce6e5fa3b2661839fbf63e126f254e3c29ca Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 09:58:16 -0500 Subject: [PATCH] Always return cache driver instance. --- system/cache.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/cache.php b/system/cache.php index 75ee4fe0..d5998bb0 100644 --- a/system/cache.php +++ b/system/cache.php @@ -40,6 +40,8 @@ public static function driver($driver = null) throw new \Exception("Cache driver [$driver] is not supported."); } } + + return static::$drivers[$driver]; } /**