ini_get is a php4 only function and may be disabled -> put an @ before it is called to avoid errors

This commit is contained in:
Loïc Chapeaux
2001-08-04 10:59:00 +00:00
parent c2d693280f
commit db5b847af1

View File

@@ -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.