From: hickert Date: Fri, 4 Jun 2010 12:50:53 +0000 (+0000) Subject: Updated debugging for jsonRPc requests X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=96873aabd2a8ff52d1b5d49a2b009421a44837f3;p=gosa.git Updated debugging for jsonRPc requests git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18848 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_jsonRPC.inc b/gosa-core/include/class_jsonRPC.inc index 54cb8b72d..f236b89b8 100644 --- a/gosa-core/include/class_jsonRPC.inc +++ b/gosa-core/include/class_jsonRPC.inc @@ -79,7 +79,8 @@ class jsonRPC { DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,"{$method}", "Calling: "); $response = $this->request($method,$params); if($this->success()){ - DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,bold($response['result']), "Result: "); + DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__, + (is_array($response['result']))?$response['result']:bold($response['result']), "Result: "); }else{ DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,bold($this->get_error())."
".$response, "Result (FAILED): "); }