Skip to content

Commit

Permalink
Fix issue with parameter parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
daedeloth committed May 4, 2022
1 parent 037217a commit 077f601
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Processors/PaginationProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,11 @@ private function createPaginationBuilderFromDefinition(
$sortDirections = [];

if ($sorting) {
$sortFields = explode(',', $sorting);
if (!is_array($sorting)) {
$sortFields = explode(',', $sorting);
} else {
$sortFields = $sorting;
}

// Set the sort order
foreach ($sortFields as $sortField) {
Expand Down

0 comments on commit 077f601

Please sign in to comment.