diff options
| author | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-22 13:02:00 +0000 |
|---|---|---|
| committer | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-22 13:02:00 +0000 |
| commit | 2414382d1ca1c7e940a7fc56c10fe7fa53835b48 (patch) | |
| tree | 983971f851cd42c1d8a557f5b6b377779f419110 | |
| parent | 454c62d51e1ec89f49830f4072abee1c5af99a47 (diff) | |
* fixing warning reported in #1484851
git-svn-id: https://svn.roundcube.net/trunk@1206 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index 6872ab4b1..642c07a1a 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -103,8 +103,12 @@ if (empty($_task) || !in_array($_task, $MAIN_TASKS)) if ($_action != 'get' && $_action != 'viewsource') { // use gzip compression if supported - if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) + if (function_exists('ob_gzhandler') + && !ini_get('zlib.output_compression') + && ini_get('output_handler') != 'ob_gzhandler') + { ob_start('ob_gzhandler'); + } else ob_start(); } |
