commit | 8df6efd402180a6361b4dd619f5535d6c2bed334 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Dec 11 17:55:55 2015 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Fri Dec 11 17:55:55 2015 +0200 |
tree | 82050088838aa75bb143fac92beb2c44453416c6 | |
parent | 71a65c359e6aee6f3f7a7f785dea1af4df064701 [diff] [blame] |
Fix #4039
diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php index 45da91c..173b437 100644 --- a/system/libraries/Session/drivers/Session_files_driver.php +++ b/system/libraries/Session/drivers/Session_files_driver.php
@@ -183,6 +183,12 @@ return ''; } } + // We shouldn't need this, but apparently we do ... + // See https://github.com/bcit-ci/CodeIgniter/issues/4039 + elseif ($this->_file_handler === FALSE) + { + return FALSE; + } else { rewind($this->_file_handle);