
Originally Posted by
swguy
Trouble is, you won't see it in PHP5. I got bit by a similar thing in Gift Wrap because I don't test in PHP4 anymore. Fix is straightforward: change
$ratio = $od_amount['total']/$order_total;
to
$ratio = 1;
if ($order_total != 0) {
$ratio = $od_amount['total']/$order_total;
}
Bookmarks