summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-05-23 19:37:24 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-05-23 19:42:04 +0200
commit55a6ddb0c7bab1149bb1ddfa3a1aff46612c91d4 (patch)
tree5840dd5451c53c5fc01509288c4484d5189a66a1 /system/libraries/Session.php
parent37294771ef8cdb0c2d4834783ad79a6bdbc96d77 (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/Session.php')
-rw-r--r--system/libraries/Session.php6
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);