index d0b1a266cc8bd794d583bf894b94fdd29ed1afe7..2732905613aba9c873865be5fe039bda5cee9543 100644 (file)
}
/* Error messages are hidden in GOsa, so we only send them to the logging class and abort here */
}
/* 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)){
/* Write to syslog */
if(class_exists("log") && !preg_match("/No such object/",$errstr)){
</a>
</td>
<td align=right>
</a>
</td>
<td align=right>
- <button onClick='toggle(\"errorbox\")'>".
+ <button onClick='GOsa_toggle(\"errorbox\")'>".
_("Toggle information")."
</button>
</td>
_("Toggle information")."
</button>
</td>
$error_collector_mailto .= prepare4mailbody("=== Trace ===");
/* Generate trace history */
$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];
$ct= $trace[$index];
ini_set("track_vars",1);
ini_set("display_errors",1);
ini_set("report_memleaks",1);
ini_set("track_vars",1);
ini_set("display_errors",1);
ini_set("report_memleaks",1);
-ini_set("include_path",".:$BASE_DIR/include:$BASE_DIR/include/utils/excel");
+ini_set("include_path",".:$BASE_DIR/include:$BASE_DIR/include/utils/excel:/usr/share/php");
/* Do smarty setup */
require("smarty/Smarty.class.php");
/* Do smarty setup */
require("smarty/Smarty.class.php");