Skip to content

Commit

Permalink
Revert "session_status() not available until 5.4"
Browse files Browse the repository at this point in the history
This reverts commit da9b645.
  • Loading branch information
phpnut committed Dec 15, 2015
1 parent 5790d49 commit 1a3598c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cake/Model/Datasource/CakeSession.php
Expand Up @@ -218,10 +218,7 @@ public static function start() {
* @return bool True if session has been started.
*/
public static function started() {
if(PHP_VERSION >=5.4) {
return (session_status() === PHP_SESSION_ACTIVE);
}
return isset($_SESSION) && session_id();
return (session_status() === PHP_SESSION_ACTIVE);
}

/**
Expand Down

0 comments on commit 1a3598c

Please sign in to comment.