dbltoe:
Are we starting to channel RodG or are you still upset about RixStix not including you in the "Good Guy List"?:P:hug:
PHP states that ANY use of count() with 7.2 will generate the warning listed. At https://www.php.net/manual/en/function.count.php you will need to scroll down to Change Log to see their statement.
I did not say there was any error in operation of the cart. Maybe I should have said warning.
I simply wanted to know if the replacement code was correct in order to stop the warning, which stops the customer from texting, which stops me from having to spend time on a warning, which causes me to...............................
last time, and i'm really done....
i am not at all upset. at all... the only thing that makes me upset is a comparison to rodG....
i'm just trying to help with the code. that is all....
WARNINGS will eventually turn to ERRORS which is a good reason to address them now; prior to a newer version of php which will say they are errors.
if the refund succeeded without problem, i do not understand the code. my concern is to help with the code.... and to not be compared to.... others.... that is all...
your code will address that problem, but if the result of return errors is NOT either an EMPTY array or a filled ARRAY (lines 1100 or 1104) the code needs to be fixed. IMO.
now get back out there and #stayathome.
best.