Code

Updated rpc handle storage
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Aug 2010 09:24:49 +0000 (09:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Aug 2010 09:24:49 +0000 (09:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19353 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_config.inc

index 8c49425ea74b440459a0e9550cd76a5ff82ddc4d..70bba3876a304e8e73a260726a38424114068750 100644 (file)
@@ -317,10 +317,10 @@ class config  {
     function getRpcHandle($url="", $user="", $pwd="", $digest = FALSE )
     {
         // Create jsonRPC handle on demand.
-        if(!$this->jsonRPChandle || TRUE){
-            $this->jsonRPChandle = new jsonRPC($this, $url, $user, $pwd, $digest);
+        if(!isset($this->jsonRPChandle[$url][$user]) || !$this->jsonRPChandle[$url][$user]){
+            $this->jsonRPChandle[$url][$user] = new jsonRPC($this, $url, $user, $pwd, $digest);
         }
-        return($this->jsonRPChandle);
+        return($this->jsonRPChandle[$url][$user]);
     }