Skip to content

Commit

Permalink
Merge pull request #354 from perftools/pdo-default-direction
Browse files Browse the repository at this point in the history
Add default direction (asc) for pdo searcher
  • Loading branch information
glensc authored Oct 22, 2020
2 parents 36d4cd4 + d646f62 commit 5e2ae30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xhgui/Searcher/PdoSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getAvgsForUrl($url, $search = [])
public function getAll($options = [])
{
$page = (int)$options['page'];
$direction = $options['direction'];
$direction = $options['direction'] ?? 'asc';
if ($page < 1) {
$page = 1;
}
Expand Down

0 comments on commit 5e2ae30

Please sign in to comment.