concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
105 stars 66 forks source link

Fix "Undefined variable $added" in Cart::update() #873

Closed mlocati closed 4 months ago

mlocati commented 4 months ago

Another fix, now for this warning:

Undefined variable $added

User: Guest

URL: https://www.domain.com/cart/update

File: [webroot]/packages/community_store/src/CommunityStore/Cart/Cart.php
Line: 597

Trace:
#0 [webroot]/packages/community_store/src/CommunityStore/Cart/Cart.php(597): Whoops\Run->handleError()
#1 [webroot]/packages/community_store/src/CommunityStore/Cart/Cart.php(542): Concrete\Package\CommunityStore\Src\CommunityStore\Cart\Cart::update()
#2 [webroot]/packages/community_store/controllers/single_page/cart.php(198): Concrete\Package\CommunityStore\Src\CommunityStore\Cart\Cart::updateMultiple()
#3 [internal function]: Concrete\Package\CommunityStore\Controller\SinglePage\Cart->update()