Fix undefined error warnings
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 16 Aug 2009 22:54:41 +0000 (16:54 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 17 Aug 2009 18:47:18 +0000 (12:47 -0600)
framework/Core/lib/Horde/Registry.php

index 16814dd..6e40cfb 100644 (file)
@@ -520,7 +520,7 @@ class Horde_Registry
 
         $this->_loadApiCache();
 
-        return in_array($call, $this->_cache['api'][$app]['api'])
+        return (isset($this->_cache['api'][$app]) && in_array($call, $this->_cache['api'][$app]['api']))
             ? $app
             : false;
     }