Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Allyans3 committed Sep 1, 2020
1 parent 4e5952c commit ed03f8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ $options = [
'orderBy' => 'best_deals', // ['price', 'best_deals', 'best_discount', 'updated']
'orderDir' => 'desc', // ['asc', 'desc']
'title' => '', // Field for search skins: 'AK-47 | The Empress'
'priceFrom' => 0, // 0 if from Inf to Inf
'priceTo' => 0, // 0 if from Inf to Inf
'priceFrom' => 0, // 0 if from -Inf to +Inf
'priceTo' => 0, // 0 if from -Inf to +Inf
'treeFilters' => '',
'types' => 'dmarket', // ['dmarket', 'p2p']
'offset' => 0,
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/MarketItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function setOptions($options)
{
$this->orderBy = $options['orderBy'] ?? $this->orderBy;
$this->orderDir = $options['orderDir'] ?? $this->orderDir;
$this->title = $options['title'] ?? $this->title;
$this->title = isset($options['title']) ? rawurlencode($options['title']) : $this->title;
$this->priceFrom = $options['priceFrom'] ?? $this->priceFrom;
$this->priceTo = $options['priceTo'] ?? $this->priceTo;
$this->treeFilters = $options['treeFilters'] ?? $this->treeFilters;
Expand Down

0 comments on commit ed03f8f

Please sign in to comment.