return $id;
}
protected function processRecur($input, $ids, $objects, $first) {
+ $lastfailures = $this->getLastFailures($ids['contributionRecur']);
$recur = &$objects['contributionRecur'];
$contributionStatus = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
$input['skipComponentSync'] = 1;
/* Action for repeated failures */
- if(MAX_FAILURES <= $this->getLastFailures($ids['contributionRecur'])) {
+ if(MAX_FAILURES <= $lastfailures) {
//$this->disableAutoRenew(($ids['contributionRecur']));
$this->disableAutorenew($ids['processor_id']);
}