diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-23 19:37:24 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-23 19:42:04 +0200 |
commit | 55a6ddb0c7bab1149bb1ddfa3a1aff46612c91d4 (patch) | |
tree | 5840dd5451c53c5fc01509288c4484d5189a66a1 /system/libraries | |
parent | 37294771ef8cdb0c2d4834783ad79a6bdbc96d77 (diff) |
Input, Session and Cookie get's will return NULL.
Read more about this change here:
http://codeigniter.com/forums/viewthread/215833
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Session.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php index 783109a60..4d6aa0ce8 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -276,7 +276,7 @@ class CI_Session { $session = $this->CI->input->cookie($this->sess_cookie_name); // No cookie? Goodbye cruel world!... - if ($session === FALSE) + if ($session === NULL) { log_message('debug', 'A session cookie was not found.'); return FALSE; @@ -586,7 +586,7 @@ class CI_Session { */ public function userdata($item) { - return isset($this->userdata[$item]) ? $this->userdata[$item] : FALSE; + return isset($this->userdata[$item]) ? $this->userdata[$item] : NULL; } // -------------------------------------------------------------------- @@ -715,7 +715,7 @@ class CI_Session { { // 'old' flashdata gets removed. Here we mark all // flashdata as 'new' to preserve it from _flashdata_sweep() - // Note the function will return FALSE if the $key + // Note the function will return NULL if the $key // provided cannot be found $value = $this->userdata($this->flashdata_key.':old:'.$key); |