I just received an e-mail from a customer trying to place an order. I have not made any changes to the site recently and don't know where this error came from.

Fatal error: Call to undefined function: update_credit_account() in /home/****/public_html/catalog2/includes/classes/order_total.php on line 124

This is the code that appears in order_total.php around line 124

function update_credit_account($i) {
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ( $GLOBALS[$class]->credit_class ) {

Any suggestions?