Thanks, I would add in
Code:
{else}
{capture name=dialog}
No related products.
{/capture}
{include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}
just before the last {/if} in case there is no upselling products, otherwise it's blank.