Commit 04a0f98f authored by lphuberdeau's avatar lphuberdeau

[FIX] Avoid error when requested item does not exist

parent a0d4f1ef
......@@ -160,7 +160,7 @@ function smarty_function_object_link_trackeritem( $smarty, $object, $title = nul
$item = Tracker_Item::fromId($object);
if ($status = $item->getDisplayedStatus()) {
if ($item && $status = $item->getDisplayedStatus()) {
$alt = tr($status);
$pre = "<img src=\"img/icons/status_$status.gif\" alt=\"$status\"/>&nbsp;";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment