// Get the iCalendar file components.
$components = $vCal->getComponents();
+ $msgs = array();
// Handle the action requests.
$actions = Util::getFormData('itip_action', array());
foreach ($actions as $key => $action) {
- $msgs = array();
switch ($action) {
case 'delete':
// vEvent cancellation.
$html .= '<h2 class="header">' . $desc . '</h2>';
- foreach ($msgs[$id] as $msg) {
+ foreach ($msgs as $msg) {
$html .= '<p class="notice">' . Horde::img('alerts/' . $msg[0] . '.png', '', null, $registry->getImageDir('horde')) . $msg[1] . '</p>';
}
$html .= '<h2 class="header">' . $desc . '</h2>';
- foreach ($msgs[$id] as $msg) {
+ foreach ($msgs as $msg) {
$html .= '<p class="notice">' . Horde::img('alerts/' . $msg[0] . '.png', '', null, $registry->getImageDir('horde')) . $msg[1] . '</p>';
}