From 317a7d9f677b50db12c5988f38abb10ade0634a5 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sat, 12 Dec 2009 15:33:19 +0000 Subject: - fix warning when authentication fails and debug_level=4 (#1486292) --- program/include/rcmail.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program/include') diff --git a/program/include/rcmail.php b/program/include/rcmail.php index f707e3571..a6ac75112 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1061,6 +1061,9 @@ class rcmail */ public static function setcookie($name, $value, $exp = 0) { + if (headers_sent()) + return; + $cookie = session_get_cookie_params(); setcookie($name, $value, $exp, $cookie['path'], $cookie['domain'], rcube_https_check(), true); -- cgit v1.2.3