Skip to content

Commit

Permalink
Store photo in the photo_orig field when importing if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 20, 2015
1 parent c76cc56 commit c4073d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turba/lib/Driver.php
Expand Up @@ -2509,7 +2509,8 @@ public function toHash(Horde_Icalendar_Vcard $vcard)
break;
}
$type = Horde_String::lower($item['name']);
$hash[$type] = base64_decode($item['value']);
$type_key = $type . (!empty($this->map[$type . '_orig']) ? '_orig' : '');
$hash[$type_key] = base64_decode($item['value']);
if (isset($item['params']['TYPE'])) {
$hash[$type . 'type'] = $item['params']['TYPE'];
}
Expand Down

0 comments on commit c4073d9

Please sign in to comment.