Skip to content

Commit

Permalink
Merge pull request #33008 from AnthonyVallenet/patch-3
Browse files Browse the repository at this point in the history
Fix: Prevent invalid foreach() on extrafields label in product/price.php
  • Loading branch information
eldy authored Feb 10, 2025
2 parents 968936d + 2358dc8 commit 6c44d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/product/price.php
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@

// Extrafields
$extrafields->fetch_name_optionals_label("product");
$extralabels = !empty($extrafields->attributes["product"]['label']) ? $extrafields->attributes["product"]['label'] : '';
$extralabels = !empty($extrafields->attributes["product"]['label']) ? $extrafields->attributes["product"]['label'] : [];
$extrafield_values = $extrafields->getOptionalsFromPost("product");
$sql = "SELECT";
$sql .= " fk_object";
Expand Down

0 comments on commit 6c44d74

Please sign in to comment.