Skip to content
Permalink
Browse files

Using function_exists instead of using constant

  • Loading branch information...
phpnut committed Dec 29, 2015
1 parent b1d9337 commit 6ee621011bbae2a6615edb40801098a5d8c43931
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/CakeSession.php
@@ -217,7 +217,7 @@ public static function start() {
* @return bool True if session has been started.
*/
public static function started() {
if (PHP_VERSION >= 5.4) {
if (function_exists('session_status')) {
return isset($_SESSION) && (session_status() === PHP_SESSION_ACTIVE);
}
return isset($_SESSION) && session_id();

0 comments on commit 6ee6210

Please sign in to comment.
You can’t perform that action at this time.