make alarm content array really empty if all alarms have been stripped out due to ACL issues - otherwise one empty row will be displayed in form

This commit is contained in:
Christian Binder 2009-11-04 09:41:19 +00:00
parent 01ecab32bc
commit f3a21aec7b

View File

@ -997,6 +997,10 @@ class calendar_uiforms extends calendar_ui
$readonlys['delete_alarm['.$id.']'] = !$this->bo->check_perms(EGW_ACL_EDIT,$alarm['all'] ? $event : 0,$alarm['owner']);
}
if (count($content['alarm']) == 1)
{
$content['alarm'] = false; // no alarms added to content array
}
}
else
{