From: hickert Date: Tue, 3 Aug 2010 09:24:49 +0000 (+0000) Subject: Updated rpc handle storage X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9442ca45187bdff587f5c11db5ef42e4d78cd88b;p=gosa.git Updated rpc handle storage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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]); }