Code

added the uid to the set method - works. - "works as soon as you do it right"
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Sep 2010 13:55:47 +0000 (13:55 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Sep 2010 13:55:47 +0000 (13:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19606 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_groupware.inc

index dc275340db82ad20ac9d0279da75eb8fb38a4db4..181eb949447b90da59370dfe777486b947c8a0a7 100644 (file)
@@ -113,10 +113,11 @@ class groupware extends plugin
        echo "------<br>Calling function:".$function."<br>";
      
         $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);
-        }
-        
+      
     }