Code

(groupware) repaired forwarding addresses / alternatives are fixed too.
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 15:03:21 +0000 (15:03 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 15:03:21 +0000 (15:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20324 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 96588532455ac5cec8be1bb01cec1068f580b921..338ef6e3e8c8a4035e8c9d6f1cdc22d0b87cdd9d 100644 (file)
@@ -204,7 +204,9 @@ class GroupwareDao{
                $comp = $this->get("comprehensiveUser", array($uid));
                $resultArr["primaryMail"] = $comp["primaryMail"];
                $resultArr["alternateAddresses"] = $comp["alternateAddresses"];
-        $resultArr["forwardingAddresses"] = $comp["forwardingAddresses"];              
+               
+        $resultArr["forwardingAddresses"] = array(key($comp["forwardingAddresses"]));          
+               var_dump($resultArr["forwardingAddresses"]);
                $resultArr["mailLocation"] = $comp["mailLocation"];
                //Quota things.
                $resultArr["quotaSize"] = $comp["quota"]["usage"];