Skip to content

Commit

Permalink
Fix regression introduced by: 089475c
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jun 17, 2014
1 parent d422cda commit 4077398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turba/lib/Driver.php
Expand Up @@ -1132,7 +1132,7 @@ public function tovCard(Turba_Object $object, $version = '2.1',

foreach ($attributes as $key) {
$val = $object->getValue($key);
if ($skipEmpty && !strlen($val)) {
if ($skipEmpty && !is_array($val) && !strlen($val)) {
continue;
}
if ($decode_hook) {
Expand Down Expand Up @@ -1810,7 +1810,7 @@ public function tovCard(Turba_Object $object, $version = '2.1',
break;
}
$vcard->setAttribute($name,
base64_encode($val),
base64_encode($hash[$key]),
$params);
break;
}
Expand Down

0 comments on commit 4077398

Please sign in to comment.