From: Michael M Slusarz Date: Sun, 16 Aug 2009 22:54:41 +0000 (-0600) Subject: Fix undefined error warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c4f36c6cc88e3c2b6cf002f3feb39d7e081086c0;p=horde.git Fix undefined error warnings --- 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; }