From: Jan Schneider Date: Fri, 12 Feb 2010 10:56:18 +0000 (+0100) Subject: getEvent() doesn't return PEAR_Errors anymore. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=508fde21223ed52c6acdfad1f92968a5ecc2556d;p=horde.git getEvent() doesn't return PEAR_Errors anymore. --- diff --git a/kronolith/lib/Ajax/Application.php b/kronolith/lib/Ajax/Application.php index 616f4c53c..0381ee2ff 100644 --- a/kronolith/lib/Ajax/Application.php +++ b/kronolith/lib/Ajax/Application.php @@ -60,9 +60,6 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base 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; @@ -84,9 +81,6 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base 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; @@ -129,9 +123,6 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base 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;