From: Michael J. Rubinsky Date: Sun, 11 Apr 2010 15:20:43 +0000 (-0400) Subject: Check for errors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9450dd056c861c3541a464199eecdb164f71ec45;p=horde.git Check for errors --- diff --git a/nag/lib/Driver.php b/nag/lib/Driver.php index 15ea959b2..30f1b857c 100644 --- a/nag/lib/Driver.php +++ b/nag/lib/Driver.php @@ -405,6 +405,9 @@ class Nag_Driver { /* Get the task's details for use later. */ $task = $this->get($taskId); + if ($task instanceof PEAR_Error) { + return $task; + } $delete = $this->_delete($taskId); if (is_a($delete, 'PEAR_Error')) {