From 24e3fb2e63dcb481c7cb2e02f6a8dee40071fd85 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 10 Oct 2013 10:49:41 +0000 Subject: [PATCH] fix "Got invalid title request, by NOT sending empty requests" warnings --- etemplate/inc/class.etemplate_widget_link.inc.php | 2 +- phpgwapi/js/jsapi/egw_links.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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); } }