Unhandled Error!

Trying to get property of non-object

Document breadcrumbs
Document type CMS page block
Line 12
Exception class Cms_ExecutionException

Code Highlight

        if (in_array($category->name, $sub_cats)) :
            break;
        endif;
    endforeach;
endif;
 
$this->data['current_tab'] = $category->name;
?>
 
<nav id="breadcrumbs" class="container">
  <a href="<?= root_url('/') ?>">Home</a> /
  <? if ($category): ?>
	<? /*
# Document Type
2 breadcrumbs CMS page block
1 Product details page. CMS page