Don't fatal out if we don't have clients/ available
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 7 Jan 2011 18:30:23 +0000 (13:30 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 7 Jan 2011 18:31:02 +0000 (13:31 -0500)
hermes/lib/Hermes.php

index 42418ad..3a57848 100644 (file)
@@ -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)) {