mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix various code.
This commit is contained in:
@@ -79,7 +79,7 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface, UserGroupInte
|
||||
{
|
||||
/** @var Rule $rule */
|
||||
foreach ($ruleGroup->rules as $rule) {
|
||||
if (null === $moveTo) {
|
||||
if (!$moveTo instanceof RuleGroup) {
|
||||
$rule->delete();
|
||||
|
||||
continue;
|
||||
@@ -92,7 +92,7 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface, UserGroupInte
|
||||
$ruleGroup->delete();
|
||||
|
||||
$this->resetOrder();
|
||||
if (null !== $moveTo) {
|
||||
if ($moveTo instanceof RuleGroup) {
|
||||
$this->resetRuleOrder($moveTo);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user