getEvent() doesn't return PEAR_Errors anymore.
authorJan Schneider <jan@horde.org>
Fri, 12 Feb 2010 10:56:18 +0000 (11:56 +0100)
committerJan Schneider <jan@horde.org>
Fri, 12 Feb 2010 10:56:18 +0000 (11:56 +0100)
kronolith/lib/Ajax/Application.php

index 616f4c5..0381ee2 100644 (file)
@@ -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;