Skip to content

Commit

Permalink
Added array cast on posted product options in API
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Aug 19, 2024
1 parent 329854e commit ae971be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/controller/api/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function add(): void {
}

if (isset($this->request->post['option'])) {
$option = array_filter($this->request->post['option']);
$option = array_filter((array)$this->request->post['option']);
} else {
$option = [];
}
Expand Down

0 comments on commit ae971be

Please sign in to comment.