summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-12 15:33:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-12 15:33:19 +0000
commit0a9e8fe1a62525a848973cf3c586fd0bb494c2b6 (patch)
tree0bd085141ed11b4773aeedb01551f59480a6e4e9
parent834e516e0678f12f520380a11f042a8e200930cb (diff)
- fix warning when authentication fails and debug_level=4 (#1486292)
git-svn-id: https://svn.roundcube.net/trunk@3177 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcmail.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index f707e3571..a6ac75112 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/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);