Zen cart 1.3.9h

Around Line 962 is some code to display the order total in a table. This table is improperly formated which could cause errors in HTML emails.

Original Code:
PHP Code:
    //order totals area
    
$html_ot .= '<td class="order-totals-text" align="right" width="100%">' '&nbsp;' '</td> ' "\n" '<td class="order-totals-num" align="right" nowrap="nowrap">' '---------' .'</td> </tr>' "\n" '<tr>';
    for (
$i=0$n=sizeof($order_totals); $i<$n$i++) {
      
$email_order .= strip_tags($order_totals[$i]['title']) . ' ' strip_tags($order_totals[$i]['text']) . "\n";
      
$html_ot .= '<td class="order-totals-text" align="right" width="100%">' $order_totals[$i]['title'] . '</td> ' "\n" '<td class="order-totals-num" align="right" nowrap="nowrap">' .($order_totals[$i]['text']) .'</td> </tr>' "\n" '<tr>';
    }
    
$html_msg['ORDER_TOTALS'] = '<table border="0" width="100%" cellspacing="0" cellpadding="2"> ' $html_ot ' </table>'
This is the fix:
PHP Code:
    //order totals area
    
$html_ot .= '<tr><td class="order-totals-text" align="right" width="100%">' '&nbsp;' '</td> ' "\n" '<td class="order-totals-num" align="right" nowrap="nowrap">' '---------' .'</td></tr>' "\n";
    for (
$i=0$n=sizeof($order_totals); $i<$n$i++) {
      
$email_order .= strip_tags($order_totals[$i]['title']) . ' ' strip_tags($order_totals[$i]['text']) . "\n";
      
$html_ot .= '<tr><td class="order-totals-text" align="right" width="100%">' $order_totals[$i]['title'] . '</td> ' "\n" '<td class="order-totals-num" align="right" nowrap="nowrap">' .($order_totals[$i]['text']) .'</td> </tr>' "\n";
    }
    
$html_msg['ORDER_TOTALS'] = '<table border="0" width="100%" cellspacing="0" cellpadding="2"> ' $html_ot ' </table>'
Thank you,
Anthony Taylor