Calendar: FIx downloading birthday events from sql addressbook

This commit is contained in:
Aleksander Machniak 2019-10-01 20:17:38 +02:00
parent eee719e6d2
commit 09ef4f6b8c

View file

@ -731,7 +731,7 @@ abstract class calendar_driver
$rcmail = rcmail::get_instance(); $rcmail = rcmail::get_instance();
if ($source && $contact_id && ($abook = $rcmail->get_address_book($source))) { if (strlen($source) && $contact_id && ($abook = $rcmail->get_address_book($source))) {
if ($contact = $abook->get_record($contact_id, true)) { if ($contact = $abook->get_record($contact_id, true)) {
return self::parse_contact($contact, $source); return self::parse_contact($contact, $source);
} }