index d0b1a266cc8bd794d583bf894b94fdd29ed1afe7..f7b8d075fdd8aff862f382b158bd37e624889b80 100644 (file)
}
/* Error messages are hidden in GOsa, so we only send them to the logging class and abort here */
- if(isset($config->data) && $config->get_cfg_value("displayerrors") == "true"){
+ if(isset($config->data) && $config->get_cfg_value("displayerrors") != "true"){
/* Write to syslog */
if(class_exists("log") && !preg_match("/No such object/",$errstr)){
$error_collector_mailto .= prepare4mailbody("=== Trace ===");
/* Generate trace history */
- for ($index= 0; $index<count($trace); $index++){
+ for ($index= 0, $c= count($trace); $index<$c; $index++){
$ct= $trace[$index];