Commit 8fd522fd by Phill Sparks

Refactored redis destruction

parent bbffa96c
......@@ -258,7 +258,10 @@ class Redis {
*/
public function __destruct()
{
fclose($this->connection);
if ($this->connection)
{
fclose($this->connection);
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment