From 508fde21223ed52c6acdfad1f92968a5ecc2556d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 12 Feb 2010 11:56:18 +0100 Subject: [PATCH] getEvent() doesn't return PEAR_Errors anymore. --- kronolith/lib/Ajax/Application.php | 9 --------- 1 file changed, 9 deletions(-) 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; -- 2.11.0