X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fphp_setup.inc;h=ebddd810af024e1c61becb511f2a490a52ca3e42;hb=864c95639b0be06c155dbdc56b9c4898d82c3353;hp=d9bf3dc458ca0645e40cd3ebdfbd9c06db094ded;hpb=62cc124fe8519af476363aa197001bbb9c00e826;p=gosa.git diff --git a/include/php_setup.inc b/include/php_setup.inc index d9bf3dc45..ebddd810a 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\", "); } }