Avoid a blank screen if registry.php is missing
authorChuck Hagenbuch <chuck@horde.org>
Mon, 17 May 2010 02:18:46 +0000 (22:18 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 17 May 2010 02:18:46 +0000 (22:18 -0400)
framework/Core/lib/Horde/Registry.php

index cf81121..edff343 100644 (file)
@@ -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) {