fix for cached titles that are empty

This commit is contained in:
Klaus Leithoff 2010-07-01 11:14:48 +00:00
parent a3685d298e
commit 2768366eb6

View File

@ -632,7 +632,7 @@ class egw_link extends solink
if (!$id) return ''; if (!$id) return '';
$title =& self::get_cache($app,$id); $title =& self::get_cache($app,$id);
if (isset($title) && !is_array($id)) if (isset($title) && !empty($title) && !is_array($id))
{ {
if (self::DEBUG) echo '<p>'.__METHOD__."('$app','$id')='$title' (from cache)</p>\n"; if (self::DEBUG) echo '<p>'.__METHOD__."('$app','$id')='$title' (from cache)</p>\n";
return $title; return $title;