diff options
author | 1st WebDesigns <gareth@1stwebdesigns.com> | 2021-01-15 10:15:28 +0100 |
---|---|---|
committer | 1st WebDesigns <gareth@1stwebdesigns.com> | 2021-01-15 10:15:28 +0100 |
commit | 6c2f011e2acc8eb595385621dc16991e42bc2f0b (patch) | |
tree | 70c9f693b2c6e06ac61e8350ccf35ccfc08c5861 /system/libraries/Session/Session.php | |
parent | 71765467734fbd37e6d9411f7889659c5ea47f88 (diff) |
Fix Flashdata time comparison for PHP 8
Diffstat (limited to 'system/libraries/Session/Session.php')
-rw-r--r-- | system/libraries/Session/Session.php | 2 |
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]); } |