mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing return value of CakeSession::__startSession(). Once headers were sent any further session objects would think that the session was not successfully started. Fixes issues in Helper group test. Also fixes #568
This commit is contained in:
parent
540157bbfd
commit
42bc252460
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ class CakeSession extends Object {
|
|||
if (empty($_SESSION)) {
|
||||
$_SESSION = array();
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
} elseif (!isset($_SESSION)) {
|
||||
session_cache_limiter ("must-revalidate");
|
||||
session_start();
|
||||
|
|
Loading…
Add table
Reference in a new issue