Skip to content
Snippets Groups Projects
Commit 5c7a08aa authored by Robin Appelman's avatar Robin Appelman
Browse files

check if a $_SESSION entry exists before we try to remove it

parent a36bf5c2
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,9 @@ class Internal extends Memory {
*/
public function remove($key) {
// also remove it from $_SESSION to prevent re-setting the old value during the merge
unset($_SESSION[$key]);
if (isset($_SESSION[$key])) {
unset($_SESSION[$key]);
}
parent::remove($key);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment