--- ../../../drupal/modules/ecommerce/contrib/cod/cod.module	2006-02-27 10:52:50.000000000 -0600
+++ contrib/cod/cod.module	2006-01-31 16:10:41.000000000 -0600
@@ -62,10 +62,11 @@
 function cod_paymentapi(&$txn, $op, $arg = '') {
   switch ($op) {
     case 'display name':
-      return cod_name();
+      return variable_get('cod_title', t('COD'));;
 
     case 'payment page':
       return cod_goto($txn);
+      break;
   }
 }
 
@@ -106,6 +107,3 @@
   drupal_goto(variable_get('cod_url', 'product'));
 }
 
-function code_name() {
-  return variable_get('cod_title', t('COD'));
-}
