Permalink
Browse files

move to 1st tab

move to 1st tab
  • Loading branch information...
alikon committed Apr 10, 2017
1 parent ab84f7a commit 610ad34308d0aeeaa20c23282df330694799b320
Showing with 6 additions and 4 deletions.
  1. +6 −4 components/com_content/models/archive.php
@@ -81,8 +81,10 @@ protected function populateState($ordering = null, $direction = null)
*/
protected function getListQuery()
{
$params = $this->state->params;
$catids = $params->get('catid', array());
$params = $this->state->params;
$app = JFactory::getApplication('site');
$catids = $app->input->getVar('catid', array());
$catids = array_values(array_diff($catids, array('')));
$articleOrderDate = $params->get('order_date');
// Create a new query object.
@@ -123,9 +125,9 @@ protected function getListQuery()
$query->where($query->year($queryDate) . ' = ' . $year);
}
if (count($catids))
if (count($catids)>0)
{
$query->where('c.id IN (' . implode($catids, ', ') .')');
$query->where('c.id IN (' . implode($catids, ', ') . ')');
}
return $query;

0 comments on commit 610ad34

Please sign in to comment.