From 0591786534509cbe7def002cc90f06f33796ceb1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 4 Mar 2020 20:34:14 +0100 Subject: [PATCH] some fixes for warnings during phpUnit about setup cookies --- setup/inc/class.setup.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index e332a071ac..fc0013785b 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -253,6 +253,7 @@ class setup case PHP_SESSION_DISABLED: throw new \ErrorException('EGroupware requires PHP session extension!'); case PHP_SESSION_NONE: + if (headers_sent()) return false; ini_set('session.use_cookie', true); session_name(self::SESSIONID); session_set_cookie_params(0, '/', self::cookiedomain(),