mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 06:06:19 +02:00
Fixed fatal error if calling $session->invalidate() when there's no active session
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.5.4
|
||||
## mm/dd/2018
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed fatal error if calling `$session->invalidate()` when there's no active session
|
||||
|
||||
# v1.5.3
|
||||
## 10/08/2018
|
||||
|
||||
|
||||
@@ -229,8 +229,10 @@ class Session implements SessionInterface
|
||||
$params['httponly']
|
||||
);
|
||||
|
||||
session_unset();
|
||||
session_destroy();
|
||||
if ($this->isSessionStarted()) {
|
||||
session_unset();
|
||||
session_destroy();
|
||||
}
|
||||
|
||||
$this->started = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user