Skip to content

Commit

Permalink
Return if the query only has orderby
Browse files Browse the repository at this point in the history
  • Loading branch information
sunel committed Sep 2, 2018
1 parent 735fd1a commit ed56fdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ProcessAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public static function process(
}
}

if(!count($query->attributeWheresRef)) {
return;
}

foreach ((array) $query->attributeWheres['binding'] as $type => $bindings) {
switch ($type) {
case 'Nested':
Expand Down

0 comments on commit ed56fdc

Please sign in to comment.