summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2021-02-04 15:27:56 +0100
committerAndrey Andreev <narf@devilix.net>2021-02-04 15:30:07 +0100
commit68ecbb692a2b19b0f0d11b57f0276cdc95637298 (patch)
treef11934a7105bb531e31977b4e191725ed9a238c4 /system
parent73d119ba24b3667857b47f3811116ad17494be7e (diff)
[ci skip] Merge pull request #6013 from 1stwebdesigns/new_branch
Fix Flashdata time comparison for PHP 8
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 87b769ff5..f872d5325 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -417,7 +417,7 @@ class CI_Session {
}
// Hacky, but 'old' will (implicitly) always be less than time() ;)
// DO NOT move this above the 'new' check!
- elseif ($value < $current_time)
+ elseif ($value === 'old' || $value < $current_time)
{
unset($_SESSION[$key], $_SESSION['__ci_vars'][$key]);
}