Index: civicrm/trunk/sites/all/modules/thank_you/thank_you.module |
— | — | @@ -131,7 +131,8 @@ |
132 | 132 | function thank_you_send( $contribution_info ) { |
133 | 133 | civicrm_initialize(true); |
134 | 134 | require_once 'api/v2/Contribute.php'; |
135 | | - $params = array( 'contribution_id' => $contribution_info[ 'contribution_id' ] ); |
| 135 | + $contribution_id = $contribution_info[ 'contribution_id' ]; |
| 136 | + $params = array( 'contribution_id' => $contribution_id ); |
136 | 137 | $contribution = &civicrm_contribution_get( $params ); |
137 | 138 | |
138 | 139 | if (strtotime($contribution['receive_date']) < time() - 86400 * variable_get('thank_you_days', 14)) { |