From 55bf8f9570e6843935cd7c03f8fd85c35a8d12ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Tue, 23 Aug 2011 17:11:45 +0000 Subject: [PATCH] additional check for existance of application in lang array --- phpgwapi/js/jsapi/egw.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index 211834d6d4..7b16cedc9f 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -120,7 +120,8 @@ else var apps = [window.egw_appName, 'etemplate', 'common']; for(var i = 0; i < apps.length; ++i) { - if (typeof this.lang_arr[apps[i]][_msg] != 'undefined') + if (typeof this.lang_arr[apps[i]] != "undefined" && + typeof this.lang_arr[apps[i]][_msg] != 'undefined') { translation = this.lang_arr[apps[i]][_msg]; break; @@ -254,4 +255,4 @@ else } } }; -} \ No newline at end of file +}