projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b7ed5
)
Don't throw an error if there aren't any interfaces set for some reason
author
Chuck Hagenbuch
<chuck@horde.org>
Fri, 4 Jun 2010 19:48:16 +0000
(15:48 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Fri, 4 Jun 2010 20:14:32 +0000
(16:14 -0400)
framework/Core/lib/Horde/Registry.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Registry.php
b/framework/Core/lib/Horde/Registry.php
index
b519f1b
..
33f0ee0
100644
(file)
--- a/
framework/Core/lib/Horde/Registry.php
+++ b/
framework/Core/lib/Horde/Registry.php
@@
-648,9
+648,11
@@
class Horde_Registry
public function listAPIs()
{
if (empty($this->_apis)) {
- foreach (array_keys($this->_cache['interfaces']) as $interface) {
- list($api,) = explode('/', $interface, 2);
- $this->_apis[$api] = true;
+ if (!empty($this->_cache['interfaces'])) {
+ foreach (array_keys($this->_cache['interfaces']) as $interface) {
+ list($api,) = explode('/', $interface, 2);
+ $this->_apis[$api] = true;
+ }
}
}