*** /tmp/lm_paypal_subscriptions.module	2006-12-13 10:59:56.000000000 +0000
--- ./lm_paypal_subscriptions.module	2006-12-13 11:11:54.000000000 +0000
***************
*** 930,936 ****
      '#title' => t('Trial amount 1'),
      '#maxlength' => 10,
      '#default_value' => $so->a1,
!     '#description' => t('This is the price of the first trial period. For a free trial leave this amount empty'),
    );
  
    $form['p1'] = array(
--- 930,936 ----
      '#title' => t('Trial amount 1'),
      '#maxlength' => 10,
      '#default_value' => $so->a1,
!     '#description' => t('This is the price of the first trial period. For a free trial set this to 0'),
    );
  
    $form['p1'] = array(
***************
*** 954,960 ****
      '#title' => t('Trial amount 2'),
      '#maxlength' => 10,
      '#default_value' => $so->a2,
!     '#description' => t('This is the price of the first trial period. For a free trial leave this amount empty'),
    );
  
    $form['p2'] = array(
--- 954,960 ----
      '#title' => t('Trial amount 2'),
      '#maxlength' => 10,
      '#default_value' => $so->a2,
!     '#description' => t('This is the price of the second trial period. For a free trial set this to 0'),
    );
  
    $form['p2'] = array(
***************
*** 1165,1175 ****
      form_set_error('a3', $perr);
    }
  
!   $perr = t('A trial amount must either be empty or a positive number greater than 0');
!   if ($a1 != '' && (!is_numeric($a1) || $a1 <= 0)) {
      form_set_error('a1', $perr);
    }
!   if ($a2 != '' && (!is_numeric($a2) || $a2 <= 0)) {
      form_set_error('a2', $perr);
    }
  
--- 1165,1175 ----
      form_set_error('a3', $perr);
    }
  
!   $perr = t('A trial amount must either be empty or a positive number greater than or equal to 0');
!   if ($a1 != '' && (!is_numeric($a1) || $a1 < 0)) {
      form_set_error('a1', $perr);
    }
!   if ($a2 != '' && (!is_numeric($a2) || $a2 < 0)) {
      form_set_error('a2', $perr);
    }
  
***************
*** 2101,2106 ****
--- 2101,2113 ----
    $amount = trim($amount);
    $cc = trim($cc);
  
+   if ($ipn_amount == '0.00') {
+     $ipn_amount = 0;
+   }
+   if ($amount == '0.00') {
+     $amount = 0;
+   }
+ 
    if ($ipn_amount != $amount || $ipn_currency != $cc) {
      watchdog(
        LM_PAYPAL_SUBSCRIPTIONS,
