diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-12 09:06:49 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-12 09:06:49 +0000 |
| commit | 579a200d6b636a4b0bc6ea576453e939cdd3fd76 (patch) | |
| tree | b8dcfe618ac76b95934e5b19fabe6e2b83ec9d72 /roundcubemail/program/include/rcube_config.php | |
| parent | 437bfd063bd535a998cc03660e4d22485d3ee82a (diff) | |
- Fix handling of debug_level=4 in ajax requests (#1487831)
git-svn-id: https://svn.roundcube.net/trunk@4646 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_config.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_config.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcube_config.php b/roundcubemail/program/include/rcube_config.php index 5d176053e..31608a3cc 100644 --- a/roundcubemail/program/include/rcube_config.php +++ b/roundcubemail/program/include/rcube_config.php @@ -87,12 +87,9 @@ class rcube_config ini_set('error_log', $this->prop['log_dir'].'/errors'); } } - if ($this->prop['debug_level'] & 4) { - ini_set('display_errors', 1); - } - else { - ini_set('display_errors', 0); - } + + // enable display_errors in 'show' level, but not for ajax requests + ini_set('display_errors', intval(empty($_REQUEST['_remote']) && ($this->prop['debug_level'] & 4))); // export config data $GLOBALS['CONFIG'] = &$this->prop; |
