Zen Cart Logo
Forums / Bug Reports / [Done v1.3.9e]explode() expects parameter 2 to be string ... in functions_general.php

[Done v1.3.9e]explode() expects parameter 2 to be string ... in functions_general.php

Locked

Views: 4,084

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
25 Jun 2010, 11:29 PM
#1
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

[Done v1.3.9e]explode() expects parameter 2 to be string ... in functions_general.php

Hi,

In Zen Cart v1.3.9d (and probably previous) when updating the quantity of a product from the shopping cart page the following error appears twice in the myDebug log:

PHP Warning: explode() expects parameter 2 to be string, array given in /home/glitterm/public_html/includes/functions/functions_general.php on line 566I believe this is being caused by a line in /includes/classes/shopping_cart.php in function actionUpdateProduct() at about line 1543:

$cart_qty = $this->in_cart_mixed($_POST['products_id']);
```...I think it should read...
```php
$cart_qty = $this->in_cart_mixed($_POST['products_id'][$i]);
```Regards,
Christian.