X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fphp_setup.inc;h=e83379c9826cdd039a758e2d177d6658e75e8a22;hb=2255bc8f95b2e1159d9306a99f1c563536eb06c6;hp=d9bf3dc458ca0645e40cd3ebdfbd9c06db094ded;hpb=84aad3fd1d569fb7912e619feac2d757795752b6;p=gosa.git diff --git a/include/php_setup.inc b/include/php_setup.inc index d9bf3dc45..e83379c98 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -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\", "); } }