From: Jan Schneider Date: Mon, 8 Feb 2010 22:39:37 +0000 (+0100) Subject: Catch exceptions. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=32f388832820a5cb23b414d782faadba50206e98;p=horde.git Catch exceptions. --- diff --git a/horde/services/ajax.php b/horde/services/ajax.php index 9d469ea77..c17aba895 100644 --- a/horde/services/ajax.php +++ b/horde/services/ajax.php @@ -53,7 +53,12 @@ try { ob_start(); $ajax = Horde_Ajax::getInstance($app, $action); -$result = $ajax->doAction(); +try { + $result = $ajax->doAction(); +} catch (Exception $e) { + $notification->push($e->getMessage(), 'horde.error'); + $result = null; +} // Clear the output buffer that we started above, and log any unexpected // output at a DEBUG level.