Don't attempt to import a birthday value if there is no value set
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 5 Feb 2010 16:42:47 +0000 (11:42 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 5 Feb 2010 16:42:47 +0000 (11:42 -0500)
turba/lib/Driver.php

index 417ee29..e155d11 100644 (file)
@@ -2193,7 +2193,9 @@ class Turba_Driver
                 break;
 
             case 'BDAY':
-                $hash['birthday'] = $item['value']['year'] . '-' . $item['value']['month'] . '-' .  $item['value']['mday'];
+                if (!empty($item['value'])) {
+                    $hash['birthday'] = $item['value']['year'] . '-' . $item['value']['month'] . '-' .  $item['value']['mday'];
+                }
                 break;
 
             case 'PHOTO':