Skip to content

Commit

Permalink
featured view fix filter on category (#23454)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored and rdeutz committed Jan 19, 2019
1 parent 8836e7b commit 659fa92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_content/models/featured.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ protected function getListQuery()
$baselevel = 1;
$categoryId = $this->getState('filter.category_id');

if (is_numeric($categoryId))
if (is_array($categoryId) && count($categoryId) === 1)
{
$cat_tbl = JTable::getInstance('Category', 'JTable');
$cat_tbl->load($categoryId);
$cat_tbl->load($categoryId[0]);
$rgt = $cat_tbl->rgt;
$lft = $cat_tbl->lft;
$baselevel = (int) $cat_tbl->level;
Expand Down

0 comments on commit 659fa92

Please sign in to comment.