From 9ea63f1cbb217e84a27ba5e7d90eafc8906ceb0f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 16 Apr 2010 10:28:29 +0000 Subject: [PATCH] only try to read calendar entrys, if there are ids/dates --- addressbook/inc/class.addressbook_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 2faa648693..18bb165c0c 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -979,7 +979,7 @@ class addressbook_ui extends addressbook_bo } $customfields = $this->read_customfields($ids,$selected_cfs); } - if ($show_calendar) $calendar = $this->read_calendar($ids); + if ($show_calendar && !empty($ids)) $calendar = $this->read_calendar($ids); // distributionlist memership for the entrys //_debug_array($this->get_lists(EGW_ACL_EDIT)); if ($show_distributionlist && $available_distib_lists) @@ -1697,7 +1697,7 @@ class addressbook_ui extends addressbook_bo if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0; // last and next calendar date - list(,$dates) = each($this->read_calendar(array($content['id']),false)); + if (!empty($content['id'])) list(,$dates) = each($this->read_calendar(array($content['id']),false)); if(is_array($dates)) $content += $dates; // set id for automatic linking via quick add