Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jan 7, 2016
1 parent 73eb591 commit aabe76b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions administrator/components/com_checkin/models/checkin.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function getItems()

$this->total = count($results);

// Order items
// Order items by table
if ($this->getState('list.ordering') == 'table')
{
if (strtolower($this->getState('list.direction')) == 'asc')
Expand All @@ -217,7 +217,8 @@ public function getItems()
krsort($results);
}
}
elseif ($this->getState('list.ordering') == 'count')
// Order items by number of items
else
{
if (strtolower($this->getState('list.direction')) == 'asc')
{
Expand Down

0 comments on commit aabe76b

Please sign in to comment.