Refactored redis destruction
This commit is contained in:
@@ -258,7 +258,10 @@ class Redis {
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
fclose($this->connection);
|
||||
if ($this->connection)
|
||||
{
|
||||
fclose($this->connection);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user