Code

Fixed : Catchable fatal error: Object of class * could not be converted to string...
[gosa.git] / include / php_setup.inc
index d9bf3dc458ca0645e40cd3ebdfbd9c06db094ded..ebddd810af024e1c61becb511f2a490a52ca3e42 100644 (file)
@@ -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\", ");
         }
       }