Skip to content

Commit 13bbe7d

Browse files
mkhamashfubhy
authored andcommitted
Stop decodeParams utility from trying to recursively decode strings as an array. (#536)
1 parent 6dfa31a commit 13bbe7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utility/JsonHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public static function decodeParams(array $values = []) {
2020
}
2121

2222
if (($decoded = json_decode($value, TRUE)) !== NULL && $decoded != $value) {
23-
return static::decodeParams($decoded);
23+
return is_array($decoded) ? static::decodeParams($decoded) : $decoded;
2424
}
2525

2626
return $value;
2727
}, $values);
2828
}
2929

30-
}
30+
}

0 commit comments

Comments
 (0)