From 400a5bd48ddb83e848c7a14a9be70019e0f39a8b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 31 Mar 2008 05:40:53 +0000 Subject: [PATCH] "fixed error reported on the german list, happens when contacts are stored in ldap (no distribution lists)" --- addressbook/inc/class.uicontacts.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index 049285bebc..736a73f5f6 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -959,7 +959,10 @@ class uicontacts extends bocontacts if ($show_calendar) $calendar = $this->read_calendar($ids); // distributionlist memership for the entrys //_debug_array($this->get_lists(EGW_ACL_EDIT)); - if ($show_distributionlist) $distributionlist = $this->read_distributionlist($ids,array_keys($available_distib_lists)); + if ($show_distributionlist && $available_distib_lists) + { + $distributionlist = $this->read_distributionlist($ids,array_keys($available_distib_lists)); + } } } }