diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
commit | 7327499064ae165468c7440f8571c3e570b58a0b (patch) | |
tree | 4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/libraries/Session.php | |
parent | 7539f67a23c8536f892263d8d7ab9448655d8e22 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/libraries/Session.php')
-rw-r--r-- | system/libraries/Session.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php index afa43348e..d4fdd3ac7 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -146,7 +146,7 @@ class CI_Session { * a new one. If it does, we'll update it.
*
*/
- if ( ! $this->sess_read())
+ if (! $this->sess_read())
{
$this->sess_create();
}
@@ -214,7 +214,7 @@ class CI_Session { $session = @unserialize($this->strip_slashes($session));
- if ( ! is_array($session) OR ! isset($session['last_activity']))
+ if (! is_array($session) OR ! isset($session['last_activity']))
{
log_message('error', 'The session cookie data did not contain a valid array. This could be a possible hacking attempt.');
return FALSE;
@@ -439,7 +439,7 @@ class CI_Session { */
function userdata($item)
{
- return ( ! isset($this->userdata[$item])) ? FALSE : $this->userdata[$item];
+ return (! isset($this->userdata[$item])) ? FALSE : $this->userdata[$item];
}
// --------------------------------------------------------------------
@@ -452,7 +452,7 @@ class CI_Session { */
function all_userdata()
{
- return ( ! isset($this->userdata)) ? FALSE : $this->userdata;
+ return (! isset($this->userdata)) ? FALSE : $this->userdata;
}
// --------------------------------------------------------------------
|