if appConfig ends up empty, make sure it's an empty array before doing array things...
authorChuck Hagenbuch <chuck@horde.org>
Tue, 14 Jul 2009 20:35:55 +0000 (16:35 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 14 Jul 2009 20:35:55 +0000 (16:35 -0400)
framework/Core/lib/Horde/Registry.php

index 275b608..eb227c6 100644 (file)
@@ -896,6 +896,9 @@ class Horde_Registry
     {
         if (($app != 'horde') && !$this->_loadCacheVar('conf-' . $app)) {
             $appConfig = Horde::loadConfiguration('conf.php', 'conf', $app);
+            if (empty($appConfig)) {
+                $appConfig = array();
+            }
             $this->_cache['conf-' . $app] = Horde_Array::array_merge_recursive_overwrite($this->_cache['conf-horde'], $appConfig);
             $this->_saveCacheVar('conf-' . $app);
         }