Edit customer/products.php find:
Code:
if (count($products) ==0) $products="";
Add the following after it:
Code:
if(count($products)==1) {
func_header_location("product.php?productid=".$products[0][productid]);
}
Tested with 3.5.10 (may work with 4.0.x)