From d7c6b3bd8b3b8016111049034c44aa98eea185d8 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 21 Sep 2010 23:33:40 +0200 Subject: [PATCH] MFB: Make 'birthday' really empty if BDAY property is empty. --- turba/lib/Driver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/turba/lib/Driver.php b/turba/lib/Driver.php index 24968ac8b..cb4425000 100644 --- a/turba/lib/Driver.php +++ b/turba/lib/Driver.php @@ -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; -- 2.11.0