From 864c95639b0be06c155dbdc56b9c4898d82c3353 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Nov 2006 06:54:33 +0000 Subject: [PATCH] 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 --- include/php_setup.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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\", "); } } -- 2.30.2