Forum Moderators: coopster
Yup. The rest of the code outside the if statement uses the array and if I remove the if statement it all works fine.
>> Why are you using pass-by-reference?
Dunno - not my code - it's a freebie cart that worked great until I add this if statement (which simply emails the customer when the status of an order changes to Shipped).
>>No curly brace on the end of the function?
The function is fine. If I remove the if statement all goes well. If I add the if statement and remove everything within it I get the same error but on the closeing } of the statement.
>> Have you tried ['singlequotes'] on the array?
I have - no dif.
Re: annoying - yup. I suspect I'll need to do the digging as I'm not as familiar with this code and the supporters forum for this particular add on says it all works fine. Hmmmph.