From 8f5d0d11a358a416d114c7ca1cc97bb93cb4ee0e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 7 Jan 2011 13:30:23 -0500 Subject: [PATCH] Don't fatal out if we don't have clients/ available --- hermes/lib/Hermes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hermes/lib/Hermes.php b/hermes/lib/Hermes.php index 42418ad52..3a57848ec 100644 --- a/hermes/lib/Hermes.php +++ b/hermes/lib/Hermes.php @@ -22,7 +22,11 @@ class Hermes static $clients; if (is_null($clients)) { - $result = $GLOBALS['registry']->call('clients/searchClients', array(array(''))); + try { + $result = $GLOBALS['registry']->call('clients/searchClients', array(array(''))); + } catch (Horde_Exception $e) { + // No client backend + } $client_name_field = $GLOBALS['conf']['client']['field']; $clients = array(); if (!empty($result)) { -- 2.11.0