From 42bc252460d5b43eb575d9650a7d3d01d7601df1 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 11 Apr 2010 11:41:10 -0400 Subject: [PATCH] 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 --- cake/libs/cake_session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/cake_session.php b/cake/libs/cake_session.php index c63c6a8a3..65e492a26 100644 --- a/cake/libs/cake_session.php +++ b/cake/libs/cake_session.php @@ -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();