From c4f36c6cc88e3c2b6cf002f3feb39d7e081086c0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 16 Aug 2009 16:54:41 -0600 Subject: [PATCH] Fix undefined error warnings --- framework/Core/lib/Horde/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 16814dd9e..6e40cfb66 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -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; } -- 2.11.0