mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-04-23 19:32:13 +00:00
Fix Session SessionCache not return bool in 7.1
This commit is contained in:
parent
6799b8d8a2
commit
043343e7aa
@ -58,7 +58,8 @@ class SessionCache extends AbstractCache
|
||||
|
||||
public function clear()
|
||||
{
|
||||
if (phpversion() !== false && version_compare(phpversion(), '7.2.0', '<')) {
|
||||
dump(phpversion());
|
||||
if (phpversion() !== false && version_compare(phpversion(), '7.2.0', '>=')) {
|
||||
return session_reset();
|
||||
}
|
||||
session_reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user