summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 493d1dc)
raw | patch | inline | side by side (parent: 493d1dc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Aug 2010 09:24:49 +0000 (09:24 +0000) | ||
committer | hickert <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 | patch | blob | history |
index 8c49425ea74b440459a0e9550cd76a5ff82ddc4d..70bba3876a304e8e73a260726a38424114068750 100644 (file)
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]);
}