PDA

View Full Version : Previous - Next - With detailed info



michael_s
02-08-2008, 05:21 PM
There is an error when you search products, and click in one. I upload the php file.

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/se000217/public_html/ropa-jeans/includes/products_next_previous.php on line 39

Warning: Variable passed to each() is not an array or object in /home/se000217/public_html/ropa-jeans/includes/products_next_previous.php on line 41

replace the line 39 to 41 with:
if (is_array($id_array))
reset ($id_array);
$counter = 0;
while (list($key, $value) = is_array($id_array)) {


More... (http://addons.oscommerce.com/info/1164)