create the variable $is_show_processlist so the same regular expression don't have to be tested three times

This commit is contained in:
Loïc Chapeaux
2001-08-05 11:35:41 +00:00
parent cb87249798
commit 566d56e5db

View File

@@ -31,8 +31,14 @@ if (!defined('__OB_LIB_INC__')) {
* *
* (Patch by Garth Gillespie, modified by Marc Delisle) * (Patch by Garth Gillespie, modified by Marc Delisle)
*/ */
if (@get_cfg_var('output_handler') == 'ob_gzhandler') { if (@function_exists('ini_get')) {
$mode = 0; if (@ini_get('output_handler') == 'ob_gzhandler') {
$mode = 0;
}
} else {
if (@get_cfg_var('output_handler') == 'ob_gzhandler') {
$mode = 0;
}
} }
// End patch // End patch