Skip to content

Commit

Permalink
Must check existence, this might not be passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 24, 2014
1 parent a450e8a commit 58cfca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turba/lib/Driver.php
Expand Up @@ -2509,6 +2509,7 @@ public function toHash(Horde_Icalendar_Vcard $vcard)
* DEFAULT: none (No body prefs enforced).
* - truncation: (integer) Truncate event body to this length
* DEFAULT: none (No truncation).
* - device: (Horde_ActiveSync_Device) The device object.
*
* @return Horde_ActiveSync_Message_Contact
*/
Expand All @@ -2519,7 +2520,7 @@ public function toASContact(Turba_Object $object, array $options = array())
$message = new Horde_ActiveSync_Message_Contact(array(
'logger' => $injector->getInstance('Horde_Log_Logger'),
'protocolversion' => $options['protocolversion'],
'device' => $options['device']
'device' => !empty($options['device']) ? $options['device'] : null
));
$hash = $object->getAttributes();
if (!isset($hash['lastname']) && isset($hash['name'])) {
Expand Down

0 comments on commit 58cfca6

Please sign in to comment.