I added "Recently viewed products" to the bottom of the product view page by adding this code in to local.xml file:
<!-- Showing Recently Viewed Products on Product View Page -->
<catalog_product_view translate="label">
<reference name="content">
<block type="reports/product_viewed" name="right.reports.product.viewed" as="recently_viewed" template="reports/product_viewed.phtml" />
</reference>
</catalog_product_view>
It works great, however the container for the recently viewed product is always showing even if there are no recently viewed products.
How can I add a condition to the above code in local.xml so that the "Recently viewed product" should show only if any recentley viewed product exist?
Thanks