Permalink
Browse files

* fixing warning reported in #1484851

  • Loading branch information...
1 parent 34eab04 commit 03fcc16896fdd31973ad21c67b33da6fe0b6b579 @till till committed Mar 22, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.php
View
6 index.php
@@ -103,8 +103,12 @@
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();
}

0 comments on commit 03fcc16

Please sign in to comment.