Unhandled Error!

Trying to get property of non-object

Document Category Mobile Product Return
Document type CMS page
Line 3
Exception class Cms_ExecutionException

Code Highlight

<section class="featured">
	<?
		if ($category->name == 'Belts')
		{
			$herourl = theme_resource_url('/images/beltshero.png');
		}
		else
		{
			//$herourl = theme_resource_url('/images/product-heros/products-'.$category->url_name,'.jpg');
			$urlname = $category->url_name;
 
			$herourl = theme_resource_url('/images/'.$urlname.'hero.png');
 
# Document Type
1 Category Mobile Product Return CMS page