Skip to content
Permalink
Browse files

Refactoring and emoving one isset check

  • Loading branch information...
phpnut committed Dec 28, 2015
1 parent 5c3bc44 commit 33f2f4686879299c5d03603224722836e31c1b8a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/CakeSession.php
@@ -218,7 +218,7 @@ public static function start() {
* @return bool True if session has been started.
*/
public static function started() {
return (isset($_SESSION) && session_id()) || isset($_SESSION) && (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg');
return (isset($_SESSION) && (session_id() || (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg')));
}
/**

0 comments on commit 33f2f46

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