MINOR Supress session warnings in session_regenerate_id() for a win32 environment (from r81984)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89712 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-10-21 02:21:05 +00:00
parent 0b7d187817
commit 8bd78f77d8

View File

@ -173,7 +173,9 @@ class Member extends DataObject {
$file = ''; $file = '';
$line = ''; $line = '';
if(!headers_sent($file, $line)) session_regenerate_id(true); // @ is to supress win32 warnings/notices when session wasn't cleaned up properly
// There's nothing we can do about this, because it's an operating system function!
if(!headers_sent($file, $line)) @session_regenerate_id(true);
} }
/** /**