diff --git a/etemplate/inc/class.etemplate_widget_link.inc.php b/etemplate/inc/class.etemplate_widget_link.inc.php index cb49176896..5c4c201cbc 100644 --- a/etemplate/inc/class.etemplate_widget_link.inc.php +++ b/etemplate/inc/class.etemplate_widget_link.inc.php @@ -129,7 +129,7 @@ class etemplate_widget_link extends etemplate_widget } else { - error_log("Got invalid title request: $app:" . array2string($ids)); + error_log(__METHOD__."(".array2string($app_ids).") got invalid title request: app=$app, ids=" . array2string($ids)); } } egw_json_response::get()->data($response); diff --git a/phpgwapi/js/jsapi/egw_links.js b/phpgwapi/js/jsapi/egw_links.js index 53e8a08f97..11fdcc251f 100644 --- a/phpgwapi/js/jsapi/egw_links.js +++ b/phpgwapi/js/jsapi/egw_links.js @@ -376,12 +376,12 @@ egw.extend('links', egw.MODULE_GLOBAL, function() { // add all current title-requests for(var app in title_queue) { - if (typeof _params[0][app] == 'undefined') - { - _params[0][app] = []; - } for(var id in title_queue[app]) { + if (typeof _params[0][app] == 'undefined') + { + _params[0][app] = []; + } _params[0][app].push(id); } }