fixed new calendar-column code to NOT procduce a sql error if selecting account addressbook and having accounts in LDAP

This commit is contained in:
Ralf Becker 2007-09-17 07:25:53 +00:00
parent dec28cbe89
commit 63a9c2debb

View File

@ -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(