From: Chuck Hagenbuch Date: Mon, 17 May 2010 02:18:46 +0000 (-0400) Subject: Avoid a blank screen if registry.php is missing X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=13c38bb3dc67e17371559315153f0f2b93cf5e98;p=horde.git Avoid a blank screen if registry.php is missing --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index cf8112103..edff34325 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -442,6 +442,9 @@ class Horde_Registry $this->_cache['interfaces'] = array(); /* Read the registry configuration files. */ + if (!file_exists(HORDE_BASE . '/config/registry.php')) { + throw new Horde_Exception('Missing registry.php configuration file'); + } require HORDE_BASE . '/config/registry.php'; $files = glob(HORDE_BASE . '/config/registry.d/*.php'); foreach ($files as $r) {