Closed (fixed)
Project:
e-Commerce
Version:
4.6.x-1.x-dev
Component:
-- other --
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2005 at 17:12 UTC
Updated:
21 Sep 2006 at 09:51 UTC
I am receiving the following warning:
"warning: Invalid argument supplied for foreach() in /Users/Shared/WebServer/dev8/modules/ecommerce/cart/cart.module on line 674"
I have one item in my shopping cart. This is a development system so all warning flags are enabled.
The lines are:
674 foreach ($p as $key => $value) {
675 $cart->$key = $value;
676 }
By wrapping this foreach loop in an "if ($p) { ... }" clause, I can make the error go away. But I am new to this module -- is this fix just masking a real problem?
| Comment | File | Size | Author |
|---|---|---|---|
| ecommerce-cart-foreach.patch | 258 bytes | coloma |
Comments
Comment #1
neclimdul