Fixes bug in the generation of the work address in the vcard.
authorStéphane Jacob <jacou@melix.net>
Thu, 30 Apr 2009 12:59:42 +0000 (14:59 +0200)
committerStéphane Jacob <jacou@melix.net>
Thu, 30 Apr 2009 12:59:42 +0000 (14:59 +0200)
include/vcard.inc.php

index dfdadaa..59eb6f5 100644 (file)
@@ -113,7 +113,7 @@ class VCard extends PlVCard
         // Pro
         if (!empty($user['adr_pro'])) {
             foreach ($user['adr_pro'] as $pro) {
-                $street = array($adr['adr1']);
+                $street = array($pro['adr1']);
                 if (!empty($pro['adr2'])) {
                     $street[] = $pro['adr2'];
                 }