From: hickert Date: Thu, 23 Nov 2006 06:54:33 +0000 (+0000) Subject: Fixed : Catchable fatal error: Object of class * could not be converted to string... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=864c95639b0be06c155dbdc56b9c4898d82c3353;p=gosa.git Fixed : Catchable fatal error: Object of class * could not be converted to string in include/php_setup.inc on line 111 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5207 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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\", "); } }