summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2021-02-04 15:27:56 +0100
committerGitHub <noreply@github.com>2021-02-04 15:27:56 +0100
commit119ebee192980b151d853bdc413d14a3760462ae (patch)
tree70c9f693b2c6e06ac61e8350ccf35ccfc08c5861 /system/libraries
parent71765467734fbd37e6d9411f7889659c5ea47f88 (diff)
parent6c2f011e2acc8eb595385621dc16991e42bc2f0b (diff)
[ci skip] Merge pull request #6013 from 1stwebdesigns/new_branch
Fix Flashdata time comparison for PHP 8
Diffstat (limited to 'system/libraries')
-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 ed04e95dc..79fc724a8 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -398,7 +398,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]);
}