if (!$event) {
$GLOBALS['notification']->push(_("The requested event was not found."), 'horde.error');
return false;
- } elseif ($event instanceof PEAR_Error) {
- $GLOBALS['notification']->push($event, 'horde.error');
- return false;
}
$result = new stdClass;
if (!$event) {
$GLOBALS['notification']->push(_("The requested event was not found."), 'horde.error');
return false;
- } elseif ($event instanceof PEAR_Error) {
- $GLOBALS['notification']->push($event, 'horde.error');
- return false;
} elseif (!$event->hasPermission(Horde_Perms::EDIT)) {
$notification->push(_("You do not have permission to edit this event."), 'horde.warning');
return false;
if (!$event) {
$GLOBALS['notification']->push(_("The requested event was not found."), 'horde.error');
return false;
- } elseif ($event instanceof PEAR_Error) {
- $GLOBALS['notification']->push($event, 'horde.error');
- return false;
} elseif (!$event->hasPermission(Horde_Perms::EDIT)) {
$GLOBALS['notification']->push(_("You do not have permission to edit this event."), 'horde.warning');
return false;