From 5cf1c2a625b4f50dc7c17f0724b61f430134596a Mon Sep 17 00:00:00 2001 From: hzerres Date: Fri, 10 Sep 2010 13:55:47 +0000 Subject: [PATCH] added the uid to the set method - works. - "works as soon as you do it right" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19606 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groupware/personal/groupware/class_groupware.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc index dc275340d..181eb9494 100644 --- a/gosa-plugins/groupware/personal/groupware/class_groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_groupware.inc @@ -113,10 +113,11 @@ class groupware extends plugin echo "------
Calling function:".$function."
"; $rpc = $this->config->getRpcHandle(); + echo get_class($rpc); $res = call_user_func_array(array($rpc,$function),array_values($params)); $this->rpcError = !$rpc->success(); if($this->rpcError){ - $this->rpcErrorMessage = $rpc->getError(); + $this->rpcErrorMessage = $rpc->get_error(); return(NULL); } return($res); @@ -692,12 +693,9 @@ class groupware extends plugin * Trying to save the primary Email Address. */ if(!empty($this->mailAddress)){ - $this->groupwareDao->save("primaryMail", $this->mailAddress); + $this->groupwareDao->save("primaryMail", array($this->uid, $this->mailAddress)); } - if(!empty($this->mailAddress)){ - $this->groupwareDao->save("primaryMail", $this->mailAddress); - } - + } -- 2.30.2