Index: uc_gift_certificate.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_gift_certificate/uc_gift_certificate.module,v
retrieving revision 1.11.2.20
diff -u -p -r1.11.2.20 uc_gift_certificate.module
--- uc_gift_certificate.module	5 Jan 2010 23:11:36 -0000	1.11.2.20
+++ uc_gift_certificate.module	11 Jan 2010 00:36:46 -0000
@@ -824,6 +824,11 @@ function uc_payment_method_zero_total($o
 
   switch ($op) {
     case 'cart-process':
+      // If they entered a certificate code in the checkout pane, make sure it belongs to them. (Should we make sure it's anon (0) first?
+      if ($arg1->data['certificate_code']) {        
+        uc_gift_certificate_validate($arg1->data['certificate_code']);
+      }
+      
        if ($arg1->payment_method == 'zero_total') {
          // Get the total based on the current order_total (which will not include tax, shipping, etc.)
          // TODO: Configure whether or not to include shipping, taxes, etc
