diff options
author | alecpl <alec@alec.pl> | 2009-12-12 15:33:19 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-12-12 15:33:19 +0000 |
commit | 317a7d9f677b50db12c5988f38abb10ade0634a5 (patch) | |
tree | da6a355554123d879f8dca5f4cde72ab7dc17ec0 | |
parent | 7a05909da8d5218e15295f9074a2b3207ab062aa (diff) |
- fix warning when authentication fails and debug_level=4 (#1486292)
-rw-r--r-- | program/include/rcmail.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); |