From 2414382d1ca1c7e940a7fc56c10fe7fa53835b48 Mon Sep 17 00:00:00 2001 From: till Date: Sat, 22 Mar 2008 13:02:00 +0000 Subject: * fixing warning reported in #1484851 git-svn-id: https://svn.roundcube.net/trunk@1206 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3