mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 12:28:46 +00:00
Small bug fixes.
This commit is contained in:
@@ -13,7 +13,7 @@ use Illuminate\Support\MessageBag;
|
||||
/**
|
||||
* Class Account
|
||||
*
|
||||
* @package FireflyIII\Database
|
||||
* @package FireflyIII\Database
|
||||
* @implements FireflyIII\Database\Account\AccountInterface
|
||||
*/
|
||||
class Account implements CUD, CommonDatabaseCalls, AccountInterface
|
||||
@@ -260,7 +260,9 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
|
||||
$journal->delete();
|
||||
}
|
||||
// also delete transactions.
|
||||
\Transaction::whereIn('id', $transactions)->delete();
|
||||
if (count($transactions) > 0) {
|
||||
\Transaction::whereIn('id', $transactions)->delete();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user