Refactored redis destruction

This commit is contained in:
Phill Sparks 2011-11-17 14:02:40 +00:00
parent bbffa96c2d
commit 8fd522fd67
1 changed files with 5 additions and 2 deletions

View File

@ -258,7 +258,10 @@ public static function __callStatic($method, $parameters)
*/ */
public function __destruct() public function __destruct()
{ {
fclose($this->connection); if ($this->connection)
{
fclose($this->connection);
}
} }
} }