mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-23 15:40:32 -06:00
Fix #7613
This commit is contained in:
parent
208ae1cae7
commit
6b580212bf
@ -229,7 +229,7 @@ class AttachmentHelper implements AttachmentHelperInterface
|
||||
if ($model instanceof PiggyBank) {
|
||||
$count = $model->account->user->attachments()->where('md5', $md5)->where('attachable_id', $model->id)->where('attachable_type', $class)->count();
|
||||
}
|
||||
if ($model instanceof PiggyBank) {
|
||||
if (!($model instanceof PiggyBank)) {
|
||||
$count = $model->user->attachments()->where('md5', $md5)->where('attachable_id', $model->id)->where('attachable_type', $class)->count(
|
||||
); // @phpstan-ignore-line
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user