X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fphp_setup.inc;h=e83379c9826cdd039a758e2d177d6658e75e8a22;hb=2255bc8f95b2e1159d9306a99f1c563536eb06c6;hp=8676ae819630db7444a5a630f476cf333b823666;hpb=83dfbc012179558e69a688c51ead2b70ec137ee1;p=gosa.git
diff --git a/include/php_setup.inc b/include/php_setup.inc
index 8676ae819..e83379c98 100644
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
@@ -68,7 +68,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
if (isset($_SESSION['js']) && $_SESSION['js']==FALSE){
$error_collector= "
";
} else {
- $error_collector= "
"._("Generating this page caused the PHP interpreter to raise some errors!")." | |
";
+ $error_collector= "
"._("Generating this page caused the PHP interpreter to raise some errors!")." | |
";
}
}
@@ -108,6 +108,12 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
$args= "";
if (isset($ct['args'])){
foreach ($ct['args'] as $arg){
+
+ /* Avoid convertig object to string errors */
+ if(is_object($arg)){
+ $arg = "CLASS: ".get_class($arg);
+ }
+
$args.= htmlentities("\"$arg\", ");
}
}