Skip to content
Snippets Groups Projects
Commit 3c7eed58 authored by Erik Hommel's avatar Erik Hommel
Browse files

cleaned

parent 45972d98
No related branches found
No related tags found
No related merge requests found
......@@ -42,12 +42,12 @@ class CRM_Civirules_Engine {
$object->processAction($eventData);
}
protected static function areConditionsValid(CRM_Civirules_EventData_EventData $eventData, $rule_id) {
protected static function areConditionsValid(CRM_Civirules_EventData_EventData $eventData, $ruleId) {
$isValid = true;
$firstCondition = true;
$conditionParams = array(
'rule_id' => $rule_id
'rule_id' => $ruleId
);
$ruleConditions = CRM_Civirules_BAO_RuleCondition::getValues($conditionParams);
foreach ($ruleConditions as $ruleConditionId => $ruleCondition) {
......@@ -81,7 +81,6 @@ class CRM_Civirules_Engine {
}
$condition->setRuleConditionData($ruleCondition);
$isValid = $condition->isConditionValid($eventData);
return $isValid ? true : false;
return $isValid;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment