diff --git a/components/com_contact/views/categories/tmpl/default_items.php b/components/com_contact/views/categories/tmpl/default_items.php index 2d718bf1f5c83..a09b2520274d5 100644 --- a/components/com_contact/views/categories/tmpl/default_items.php +++ b/components/com_contact/views/categories/tmpl/default_items.php @@ -12,33 +12,31 @@ JHtml::_('bootstrap.tooltip'); $class = ' class="first"'; -if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : ?> + +items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : ?> items[$this->parent->id] as $id => $item) : ?> - params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : - if (!isset($this->items[$this->parent->id][$id + 1])) - { - $class = ' class="last"'; - } - ?> + params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?> + items[$this->parent->id][$id + 1])) : ?> + +