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

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