diff options
author | Andrey Andreev <narf@devilix.net> | 2022-02-11 15:17:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 15:17:01 +0100 |
commit | 61d77ed281390e0de66da3dbdde32d816c021b24 (patch) | |
tree | 0a22bf52ffb50618efd4a5fe8d756f2e47812c6c /system/libraries | |
parent | 068640932168c263db30a969e7364fe8a3f53572 (diff) | |
parent | 6db00c58bdd75e20ea58f6a1a5efe5f86ff4c2d7 (diff) |
[ci skip] Merge pull request #6096 from jamieburchell/patch-1
Fix passing NULL to setcookie() value parameter triggering a PHP 8.1 deprecation notice
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Session/Session_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/Session_driver.php b/system/libraries/Session/Session_driver.php index b1b1b073e..ec4b76841 100644 --- a/system/libraries/Session/Session_driver.php +++ b/system/libraries/Session/Session_driver.php @@ -153,7 +153,7 @@ abstract class CI_Session_driver { return setcookie( $this->_config['cookie_name'], - NULL, + '', array( 'expires' => 1, 'path' => $this->_config['cookie_path'], |