Index: branches/5.1.x/core/kernel/application.php =================================================================== diff -u -N -r14326 -r14348 --- branches/5.1.x/core/kernel/application.php (.../application.php) (revision 14326) +++ branches/5.1.x/core/kernel/application.php (.../application.php) (revision 14348) @@ -1,6 +1,6 @@ UseOutputCompression()) { $compression_level = $this->ConfigValue('OutputCompressionLevel'); - if ($compression_level < 0 || $compression_level > 9) { + + if (!$compression_level || $compression_level < 0 || $compression_level > 9) { $compression_level = 7; } @@ -2394,6 +2395,8 @@ return $res['VariableValue']; } + trigger_error('Usage of undefined configuration variable "' . $name . '"', E_USER_NOTICE); + return false; } @@ -2825,12 +2828,12 @@ $args = ''; $type = isset($trace_info['type']) ? $trace_info['type'] : ''; - + if ( isset($trace_info['args']) ) { foreach ($trace_info['args'] as $argument) { if ( is_object($argument) ) { $args .= get_class($argument) . ' instance, '; - } + } else { $args .= is_array($argument) ? 'Array' : substr($argument, 0, 10) . ' ..., '; } Index: branches/5.1.x/core/units/helpers/modules_helper.php =================================================================== diff -u -N -r14241 -r14348 --- branches/5.1.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 14241) +++ branches/5.1.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 14348) @@ -1,6 +1,6 @@ Application->ConfigValue('DomainDetect') ? $_SERVER['HTTP_HOST'] : $config_domain; + return isset($vars['Domain']) ? $vars['Domain'] : false; } function _keyED($txt, $encrypt_key)