Skip to content

Commit

Permalink
! error filters were not honoring asc/desc. 2.0 backport
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Jan 18, 2022
1 parent 94c7dd7 commit 2c9558e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sources/admin/ManageErrors.controller.php
Expand Up @@ -121,11 +121,9 @@ protected function action_log()
// Filtering anything?
$this->_applyFilter($filter);

$sort = ($context['sort_direction'] == 'down') ? ';desc' : '';

// What type of errors do we have and how many do we have?
$context['error_types'] = array();
$context['error_types'] = $this->errorLog->fetchErrorsByType($filter, $sort);
$context['error_types'] = $this->errorLog->fetchErrorsByType($filter, $context['sort_direction']);
$tmp = array_keys($context['error_types']);
$sum = (int) end($tmp);

Expand Down

0 comments on commit 2c9558e

Please sign in to comment.