Code

Updated json class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Oct 2010 07:32:24 +0000 (07:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Oct 2010 07:32:24 +0000 (07:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20134 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_jsonRPC.inc

index bf82d971cda725228084967a57319576340840a3..e65cfbdc914619b341bc57d0c56c2a5cc49a290c 100644 (file)
@@ -200,7 +200,7 @@ class jsonRPC {
     public function inspectJsonResult($result)
     {
         // Check for remove objects we've to create
-        if(isset($result['__jsonclass__']) && class_available('remoteObject')){
+        if(is_array($result) &&  isset($result['__jsonclass__']) && class_available('remoteObject')){
 
             // Get all relevant class informations
             $classDef = $result['__jsonclass__'][1];