After upgrading a OsCommerce site to PHP5 the follow errors occurred when using the customer part of the admin section:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /catalog/admin/customers.php on line 782
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /catalog/admin/customers.php on line 784
Warning: reset() [function.reset]: Passed variable is not an array or object in /catalog/admin/includes/classes/object_info.php on line 17
Warning: Variable passed to each() is not an array or object in /catalog/admin/includes/classes/object_info.php on line 18
To eliminate thee array_merge() errors, edit the admin/customers.php file:
Find these lines:
$customer_info = array_merge($country, $info, $reviews);
$cInfo_array = array_merge($customers, $customer_info);
and change them to:
$customer_info = array_merge((array)$country, (array)$info, (array)$reviews);
$cInfo_array = array_merge((array)$customers, (array)$customer_info);




