From 41ec9f3333ff11cbb3e967419b0e7a06b6b58105 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 20 Oct 2010 09:44:15 +0000 Subject: [PATCH] Updated rpcHandle reqeust git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20100 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index ab656f727..fa421a05c 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -317,11 +317,11 @@ class config { function getRpcHandle($connectUrl=NULL, $username=NULL, $userPassword=NULL, $authModeDigest=FALSE) { // Get conenct information, if no info was given use the default values from gosa.conf - $connectUrl = ($connectUrl != NULL) ? $connectUrl : $this->get_cfg_value('core','gosaRpcServer'); - $username = ($username != NULL) ? $username : $this->get_cfg_value('core','gosaRpcUser'); - $userPassword = ($userPassword != NULL) ? $userPassword : $this->get_cfg_value('core','gosaRpcPassword'); + $connectUrl = ($connectUrl !== NULL) ? $connectUrl : $this->get_cfg_value('core','gosaRpcServer'); + $username = ($username !== NULL) ? $username : $this->get_cfg_value('core','gosaRpcUser'); + $userPassword = ($userPassword !== NULL) ? $userPassword : $this->get_cfg_value('core','gosaRpcPassword'); $authModeDigest = $authModeDigest; - + // Create jsonRPC handle on demand. if(!isset($this->jsonRPChandle[$connectUrl][$username]) || !$this->jsonRPChandle[$connectUrl][$username]){ $this->jsonRPChandle[$connectUrl][$username] = new jsonRPC($this, $connectUrl, $username, $userPassword, $authModeDigest); -- 2.30.2