From f8024018edc189da704898fcec8d5299f7ab0324 Mon Sep 17 00:00:00 2001 From: Prabowo Murti Date: Wed, 27 Jan 2021 18:17:12 +0700 Subject: [PATCH] Fix bug related to PHP 7.4 --- backend/views/operator/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/views/operator/index.php b/backend/views/operator/index.php index acd2ce1..57c1d28 100644 --- a/backend/views/operator/index.php +++ b/backend/views/operator/index.php @@ -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;