mirror of
https://github.com/getgrav/grav.git
synced 2026-07-10 04:22:46 +02:00
Minor improvement on session check (using PHP 5.4+ way)
This commit is contained in:
@@ -357,7 +357,7 @@ class Session implements \IteratorAggregate
|
||||
*/
|
||||
protected function isSessionStarted()
|
||||
{
|
||||
return php_sapi_name() !== 'cli' ? session_id() !== '' : false;
|
||||
return php_sapi_name() !== 'cli' ? \PHP_SESSION_ACTIVE === session_status() : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user