Code

Do not print each rpc response, just errornous
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Aug 2010 14:24:16 +0000 (14:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Aug 2010 14:24:16 +0000 (14:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19359 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_jsonRPC.inc

index 6d7e98efafa33f8b96c54055fbf8af4c27f03b24..12bb2af727e989d6c9d9579cd3dd5580c14952e5 100644 (file)
@@ -139,7 +139,7 @@ class jsonRPC {
         }else{
             DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,bold($this->get_error())."<br>".$response, "Result (FAILED): "); 
         }
-
+        if(isset($response['error']) && !empty($response['error']))  print_a(array($response));
         return($response['result']);
     }