From ec8c22c93b038b1b897812d667a70c73dd5d04ec Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 6 Jan 2016 20:33:38 +0000 Subject: [PATCH] Avoid error if title_queue is not defined yet --- phpgwapi/js/jsapi/egw_links.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_links.js b/phpgwapi/js/jsapi/egw_links.js index 9edacff95a..ff8b201f17 100644 --- a/phpgwapi/js/jsapi/egw_links.js +++ b/phpgwapi/js/jsapi/egw_links.js @@ -447,7 +447,9 @@ egw.extend('links', egw.MODULE_GLOBAL, function() // cache locally title_cache[app][id] = title; // call callbacks waiting for title of app/id - if(typeof title_queue[app][id] != "undefined") + if(typeof title_queue[app] != 'undefined' && + typeof title_queue[app][id] != "undefined" + ) { for(var i=0; i < title_queue[app][id].length; ++i) {