From 3e538116c99117344b8198c2fc22f1b4325ced9b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 1 Oct 2012 09:23:51 +0000 Subject: [PATCH] add some check if cached config does not meet basic requirements, recreate it then --- phpgwapi/inc/class.config.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.config.inc.php b/phpgwapi/inc/class.config.inc.php index 9634c0ef77..1fe221a0c9 100755 --- a/phpgwapi/inc/class.config.inc.php +++ b/phpgwapi/inc/class.config.inc.php @@ -340,7 +340,8 @@ class config { config::$db = $GLOBALS['egw_setup']->db; } - if (!(self::$configs = egw_cache::getInstance(__CLASS__, 'configs'))) + // if item is not cached or cache is not looking alright --> query config from database + if (!(self::$configs = egw_cache::getInstance(__CLASS__, 'configs')) || !is_array(self::$configs['phpgwapi'])) { self::$configs = array(); foreach(self::$db->select(config::TABLE,'*',false,__LINE__,__FILE__) as $row)