mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-19 03:12:48 -04:00
Upgrade to CI3.0.6
This commit is contained in:
@@ -583,6 +583,24 @@ class CI_Session {
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* __isset()
|
||||
*
|
||||
* @param string $key 'session_id' or a session data key
|
||||
* @return bool
|
||||
*/
|
||||
public function __isset($key)
|
||||
{
|
||||
if ($key === 'session_id')
|
||||
{
|
||||
return (session_status() === PHP_SESSION_ACTIVE);
|
||||
}
|
||||
|
||||
return isset($_SESSION[$key]);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* __set()
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user