From db5b847af1515099491723c35863423529d9f6f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 4 Aug 2001 10:59:00 +0000 Subject: [PATCH] ini_get is a php4 only function and may be disabled -> put an @ before it is called to avoid errors --- ob_lib.inc.php3 | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/ob_lib.inc.php3 b/ob_lib.inc.php3 index c730b4609..dfcbaa153 100644 --- a/ob_lib.inc.php3 +++ b/ob_lib.inc.php3 @@ -23,19 +23,18 @@ if (!defined('__OB_LIB_INC__')) { else $mode = 0; -/* - * If a user sets the output_handler in php.ini to ob_gzhandler, then - * any right frame file in phpMyAdmin will not be handled properly by the - * browser. My fix was to check the ini file within the - * out_buffer_mode_get() function. - * - * (Patch by Garth Gillespie, modified by Marc Delisle) - */ - - if (ini_get('output_handler') == 'ob_gzhandler') - $mode = 0; - -// End patch + /** + * If a user sets the output_handler in php.ini to ob_gzhandler, then + * any right frame file in phpMyAdmin will not be handled properly by the + * browser. My fix was to check the ini file within the + * out_buffer_mode_get() function. + * + * (Patch by Garth Gillespie, modified by Marc Delisle) + */ + if (@ini_get('output_handler') == 'ob_gzhandler') { + $mode = 0; + } + // End patch # Zero (0) is no mode or in other words output buffering is OFF.