Great. Maybe flip these two lines around so the open/close tags line up nicer:
PHP Code:
<a href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}>
<div class="related">