diff options
author | dchill42 <dchill42@gmail.com> | 2012-07-24 17:50:01 +0200 |
---|---|---|
committer | dchill42 <dchill42@gmail.com> | 2012-07-24 17:50:01 +0200 |
commit | 77ee3fdac34d317b600a269e0b845588c88fa4c5 (patch) | |
tree | 4f1d9a33c60bfde22bb376af30c7b2cd34801fdc /system/libraries/Session/drivers | |
parent | 42b77a9a1a5d4ec7ceb94b421b12af9c442769ba (diff) |
Cleaned up bangs and lowercase booleans, and fixed userdata return on not found to NULL
Diffstat (limited to 'system/libraries/Session/drivers')
-rwxr-xr-x | system/libraries/Session/drivers/Session_cookie.php | 2 | ||||
-rwxr-xr-x | system/libraries/Session/drivers/Session_native.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Session/drivers/Session_cookie.php b/system/libraries/Session/drivers/Session_cookie.php index 255a1ae3e..e39ada052 100755 --- a/system/libraries/Session/drivers/Session_cookie.php +++ b/system/libraries/Session/drivers/Session_cookie.php @@ -516,7 +516,7 @@ class CI_Session_cookie extends CI_Session_driver { protected function _sess_update($force = FALSE) { // We only update the session every five minutes by default (unless forced) - if (!$force && ($this->userdata['last_activity'] + $this->sess_time_to_update) >= $this->now) + if ( ! $force && ($this->userdata['last_activity'] + $this->sess_time_to_update) >= $this->now) { return; } diff --git a/system/libraries/Session/drivers/Session_native.php b/system/libraries/Session/drivers/Session_native.php index 7fbe9f89e..8388e06b5 100755 --- a/system/libraries/Session/drivers/Session_native.php +++ b/system/libraries/Session/drivers/Session_native.php @@ -161,10 +161,10 @@ class CI_Session_native extends CI_Session_driver { * Regenerate the session id * * @access public - * @param boolean Destroy session data flag (default: false) + * @param boolean Destroy session data flag (default: FALSE) * @return void */ - public function sess_regenerate($destroy = false) + public function sess_regenerate($destroy = FALSE) { // Just regenerate id, passing destroy flag session_regenerate_id($destroy); |