From 8fd522fd6765463d4061566318c5184a2944969d Mon Sep 17 00:00:00 2001 From: Phill Sparks Date: Thu, 17 Nov 2011 14:02:40 +0000 Subject: [PATCH] Refactored redis destruction --- laravel/redis.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/laravel/redis.php b/laravel/redis.php index a4bd8459..d23589a4 100644 --- a/laravel/redis.php +++ b/laravel/redis.php @@ -258,7 +258,10 @@ public static function __callStatic($method, $parameters) */ public function __destruct() { - fclose($this->connection); + if ($this->connection) + { + fclose($this->connection); + } } -} \ No newline at end of file +}