projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3c81f4
)
Don't show DataTree sidebar entry if DataTree is disabled.
author
Jan Schneider
<jan@horde.org>
Wed, 15 Dec 2010 22:45:48 +0000
(22:45 +0000)
committer
Jan Schneider
<jan@horde.org>
Wed, 15 Dec 2010 22:45:48 +0000
(22:45 +0000)
horde/lib/Api.php
patch
|
blob
|
history
diff --git
a/horde/lib/Api.php
b/horde/lib/Api.php
index
9aad2f1
..
eacd34c
100644
(file)
--- a/
horde/lib/Api.php
+++ b/
horde/lib/Api.php
@@
-82,6
+82,11
@@
class Horde_Api extends Horde_Registry_Api
);
}
+ if (empty($GLOBALS['conf']['datatree']['driver']) ||
+ $GLOBALS['conf']['datatree']['driver'] == 'null') {
+ unset($admin['datatree']);
+ }
+
return $admin;
}