diff --git a/components/com_tags/views/tags/view.html.php b/components/com_tags/views/tags/view.html.php index 18bbb7b207bc5..01b5fbcb56b69 100644 --- a/components/com_tags/views/tags/view.html.php +++ b/components/com_tags/views/tags/view.html.php @@ -117,14 +117,14 @@ public function display($tpl = null) } } } - else + elseif(!empty($items[0])) { // Merge so that tag params take priority - $temp->merge($item[0]->params); - $item[0]->params = $temp; + $temp->merge($items[0]->params); + $items[0]->params = $temp; // Check for alternative layouts (since we are not in a single-tag menu item) // Single-tag menu item layout takes priority over alt layout for a tag - if ($layout = $item[0]->params->get('tag_layout')) + if ($layout = $items[0]->params->get('tag_layout')) { $this->setLayout($layout); }