diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index 9582d253e2..0103593d0f 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -1949,8 +1949,10 @@ $readonlys['button[vcard]'] = true; $uids = array(); foreach($ids as $id) { - $uids[] = 'c'.$id; + if (is_numeric($id)) $uids[] = 'c'.$id; } + if (!$uids) return array(); + include_once(EGW_INCLUDE_ROOT.'/calendar/inc/class.bocal.inc.php'); $bocal = new bocal; $events = $bocal->search(array(