mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-05 21:59:34 -07:00
Fix broken if statement
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user