PDA

View Full Version : Previous - Next - With detailed info



michael_s
03-04-2008, 07:21 PM
This Contribution Do not Work Properly.
Tested with PHP5/Mysql5

This Contribution Do not Work Properly. When You Search Product and You Click One, the followig error occurs :

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

Warning: Variable passed to each() is not an array or object in........../includes/products_next_previous.php on line 41


THE FIX POSTED BY DIDILIO DO NOT WORK.

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)) {

This Create a infinite LOOP, and do not work properly.

SOMEONE ALREADY SUCCEED TO FIX THIS CONTRIBUTION ?

File is Full Package of 3.3 with buttons

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