Skip to content

Commit

Permalink
Fix bug related to PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
prabowomurti committed Jan 27, 2021
1 parent 64593a8 commit f802401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/views/operator/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@

$product_attribute_groups = json_encode($product->getAttributeGroups());

$first_attribute = $product->productAttributes{0};
$first_attribute = $product->productAttributes[0];
$product_attribute_id = $first_attribute->id;
$attribute_price = $first_attribute->price;
$product_price += $attribute_price;
Expand Down

0 comments on commit f802401

Please sign in to comment.