Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gte451f committed Dec 14, 2017
2 parents aaf51f7 + ecc76e4 commit 62f9ced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/API/SearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ public function getSort($format = 'native')
foreach ($sortFields as $order) {
if (substr($order, 0, 1) == '-') {
$subOrder = substr($order, 1);
$parsedSorts[] = $subOrder . " DESC";
if (!empty($subOrder)) {
$parsedSorts[] = $subOrder . " DESC";
}
} else {
$parsedSorts[] = $order;
}
Expand Down

0 comments on commit 62f9ced

Please sign in to comment.