Fix broken if statement

This commit is contained in:
James Cole
2026-05-20 20:30:30 +02:00
parent 7499a414f4
commit f2efb69b76
@@ -543,12 +543,13 @@ class SearchRuleEngine implements RuleEngineInterface
}
// pick up from the action if it actually acted or not:
if (true === $ruleAction->stop_processing && $result) {
if (true === $ruleAction->stop_processing && true === $result) {
Log::debug(sprintf('Rule action "%s" reports changes AND asks to break, so break!', $ruleAction->action_type));
return true;
}
if (true === $ruleAction->stop_processing && false === $result) {
// reset is false at this point.
if (true === $ruleAction->stop_processing) {
Log::debug(sprintf('Rule action "%s" reports NO changes AND asks to break, but we wont break!', $ruleAction->action_type));
}