let link-entry display "appname: #id" for entries no link title is available (eg. because they got deleted), makes sense eg. for history logging

This commit is contained in:
Ralf Becker 2010-02-16 23:23:24 +00:00
parent 9d39f2ec98
commit 39666ba03b

View File

@ -371,8 +371,12 @@ class link_widget
$titles = array();
foreach(explode(',',$id) as $id)
{
if ($id && ($title = egw_link::title($app,$id)))
if ($id)
{
if (!($title = egw_link::title($app,$id)))
{
$title = $app.': #'.$id;
}
$titles[$id] = $title;
}
}