Skip to content

Firefly III: a personal finances manager

Fix #7917, add missing return statement

James Cole461249737e23
diff --git a/app/Validation/AccountValidator.php b/app/Validation/AccountValidator.php
index 159779fbd9..333b617252 100644
--- a/app/Validation/AccountValidator.php
+++ b/app/Validation/AccountValidator.php
@@ -293,6 +293,7 @@ class AccountValidator
$first = $this->accountRepository->findByName($accountName, $validTypes);
if (null !== $first) {
app('log')->debug(sprintf('Name: Found %s account #%d ("%s", IBAN "%s")', $first->accountType->type, $first->id, $first->name, $first->iban ?? 'no iban'));
+ return $first;
}
}
app('log')->debug('Found nothing!');