From 9442ca45187bdff587f5c11db5ef42e4d78cd88b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 3 Aug 2010 09:24:49 +0000 Subject: [PATCH] Updated rpc handle storage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 8c49425ea..70bba3876 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -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]); } -- 2.30.2