Index: branches/5.2.x/core/kernel/utility/debugger/debugger_responce.php =================================================================== diff -u -N -r14244 -r15532 --- branches/5.2.x/core/kernel/utility/debugger/debugger_responce.php (.../debugger_responce.php) (revision 14244) +++ branches/5.2.x/core/kernel/utility/debugger/debugger_responce.php (.../debugger_responce.php) (revision 15532) @@ -1,6 +1,6 @@ = 1099511627776) { + if ( $bytes >= 1099511627776 ) { $return = round($bytes / 1024 / 1024 / 1024 / 1024, 2); $suffix = "TB"; - } elseif ($bytes >= 1073741824) { + } + elseif ( $bytes >= 1073741824 ) { $return = round($bytes / 1024 / 1024 / 1024, 2); $suffix = "GB"; - } elseif ($bytes >= 1048576) { + } + elseif ( $bytes >= 1048576 ) { $return = round($bytes / 1024 / 1024, 2); $suffix = "MB"; - } elseif ($bytes >= 1024) { + } + elseif ( $bytes >= 1024 ) { $return = round($bytes / 1024, 2); $suffix = "KB"; - } else { + } + else { $return = $bytes; $suffix = "Byte"; } - $return .= ' '.$suffix; + $return .= ' ' . $suffix; return $return; } Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r15521 -r15532 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15521) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15532) @@ -1,6 +1,6 @@ ConfigValue('UseOutputCompression') && function_exists('gzencode') && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'); + $accept_encoding = isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : ''; + + return $this->ConfigValue('UseOutputCompression') && function_exists('gzencode') && strstr($accept_encoding, 'gzip'); } // Facade