Code

Updated debugging for jsonRPc requests
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jun 2010 12:50:53 +0000 (12:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jun 2010 12:50:53 +0000 (12:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18848 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_jsonRPC.inc

index 54cb8b72db43bdd8d9bce88eb917493d4b7f3896..f236b89b8115d3e469b7c4f1bc85010254cb10be 100644 (file)
@@ -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())."<br>".$response, "Result (FAILED): "); 
         }