Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Only add param if not in ignored params field
Browse files Browse the repository at this point in the history
  • Loading branch information
Herant committed Oct 27, 2021
1 parent 36abe49 commit 3724f09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Model/Client/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ public function addParameter($parameter, $value, $separator = '|')
if ($value == null) {
unset($this->parameters[$parameter]);
} else {
if (in_array($parameter, self::IGNORE_SEPARATOR_PARAMETERS)) {
return $this;
if (!in_array($parameter, self::IGNORE_SEPARATOR_PARAMETERS)) {
$this->parameters[$parameter] = $this->parameters[$parameter] . $separator . $value;
}
$this->parameters[$parameter] = $this->parameters[$parameter] . $separator . $value;
}
} else if ($value !== null) {
$this->parameters[$parameter] = (string) $value;
Expand Down

0 comments on commit 3724f09

Please sign in to comment.