mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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) {
|
if ($model instanceof PiggyBank) {
|
||||||
$count = $model->account->user->attachments()->where('md5', $md5)->where('attachable_id', $model->id)->where('attachable_type', $class)->count();
|
$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(
|
$count = $model->user->attachments()->where('md5', $md5)->where('attachable_id', $model->id)->where('attachable_type', $class)->count(
|
||||||
); // @phpstan-ignore-line
|
); // @phpstan-ignore-line
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user