Paul's fix for annoying link title error popping up

This commit is contained in:
Nathan Gray 2013-10-03 07:12:53 +00:00
parent 6f162f144e
commit c4fc4699a4

View File

@ -122,9 +122,16 @@ class etemplate_widget_link extends etemplate_widget
{ {
$response = array(); $response = array();
foreach($app_ids as $app => $ids) foreach($app_ids as $app => $ids)
{
if(count($ids))
{ {
$response[$app] = egw_link::titles($app, $ids); $response[$app] = egw_link::titles($app, $ids);
} }
else
{
error_log("Got invalid title request: $app:" . array2string($ids));
}
}
egw_json_response::get()->data($response); egw_json_response::get()->data($response);
} }