hi guys,

need your help here.

When i buy products and proceed all the way to checkout success, it seems that i can't click on my account_history_info.php to check my orders history.

On further checking (thru echoing every single variable), i found that my customer_id session var has become an array... (therefore cannot compare with the customer_id from the orders table).

can someone tell me wat would cause this problem?

the offending code is -->
$customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'");
$customer_info = tep_db_fetch_array($customer_info_query);
if ($customer_info['customers_id'] != $customer_id) {

tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTOR Y, '', 'SSL'));
}

where $customer_id becomes an array.

this problem only occurs occasionally.

sometimes, when 2 customers are logged in at the same time and buying stuff, after checking out, 1 of the customer's customer_id will also become corrupted and revert to the other customer's ID.

can someone help?