MFB: Make 'birthday' really empty if BDAY property is empty.
authorJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 21:33:40 +0000 (23:33 +0200)
committerJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 21:33:40 +0000 (23:33 +0200)
turba/lib/Driver.php

index 24968ac..cb44250 100644 (file)
@@ -2188,7 +2188,9 @@ class Turba_Driver implements Countable
                 break;
 
             case 'BDAY':
-                if (!empty($item['value'])) {
+                if (empty($item['value'])) {
+                    $hash['birthday'] = '';
+                } else {
                     $hash['birthday'] = $item['value']['year'] . '-' . $item['value']['month'] . '-' .  $item['value']['mday'];
                 }
                 break;