diff --git a/phpgwapi/js/jsapi/egw_config.js b/phpgwapi/js/jsapi/egw_config.js index 875a2576ed..0a64a9691b 100644 --- a/phpgwapi/js/jsapi/egw_config.js +++ b/phpgwapi/js/jsapi/egw_config.js @@ -37,7 +37,7 @@ egw.extend('config', egw.MODULE_GLOBAL, function() { { if (typeof _app == 'undefined') _app = 'phpgwapi'; - if (typeof this.configs[_app] == 'undefined') return null; + if (typeof this.configs == 'undefined' || typeof this.configs[_app] == 'undefined') return null; return this.configs[_app][_name]; },