Code

Fixed : Catchable fatal error: Object of class * could not be converted to string...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Nov 2006 06:54:33 +0000 (06:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Nov 2006 06:54:33 +0000 (06:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5207 594d385d-05f5-0310-b6e9-bd551577e9d8

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:&nbsp;".get_class($arg);
+          }
+
           $args.= htmlentities("\"$arg\", ");
         }
       }