projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b521268
)
Don't fatal out if we don't have clients/ available
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Fri, 7 Jan 2011 18:30:23 +0000
(13:30 -0500)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Fri, 7 Jan 2011 18:31:02 +0000
(13:31 -0500)
hermes/lib/Hermes.php
patch
|
blob
|
history
diff --git
a/hermes/lib/Hermes.php
b/hermes/lib/Hermes.php
index
42418ad
..
3a57848
100644
(file)
--- 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)) {