Skip to content

Commit

Permalink
Fixed (added) base filter "limit" equal sign and allowed empty compar…
Browse files Browse the repository at this point in the history
…ison sign (default =)
  • Loading branch information
kg-bot committed Mar 19, 2019
1 parent 36fed05 commit 085c963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Builders/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct( Request $request )
*/
public function get( $filters = [] )
{
$filters[] = [ 'limit', 1500 ];
$filters[] = [ 'limit', '=', 1500 ];

$urlFilters = $this->parseFilters( $filters );

Expand Down Expand Up @@ -72,7 +72,7 @@ protected function parseFilters( $filters = [] )

foreach ( $filters as $filter ) {

$urlFilters .= $filter[ 0 ] . $filter[ 1 ] . $this->escapeFilter( $filter[ 2 ] );
$urlFilters .= $filter[ 0 ] . $filter[ 1 ] . $this->escapeFilter( $filter[ 2 ] ?? '=' );

if ( count( $filters ) > $i ) {

Expand Down

0 comments on commit 085c963

Please sign in to comment.