Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kopp committed Oct 23, 2022
1 parent 5e848da commit bb1ffff
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libraries/src/MVC/Model/ListModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,12 @@ protected function populateState($ordering = null, $direction = null)
break;

case 'ordering':

if (!\in_array($value, $this->filter_fields)) {
$value = $ordering;
}
break;

case 'direction':

if ($value && (!\in_array(strtoupper($value), array('ASC', 'DESC', '')))) {
$value = $direction;
}
Expand Down

0 comments on commit bb1ffff

Please sign in to comment.