Merge pull request 'Fix dereferencing $tag when null' (#47) from fix-null-tag into master

Reviewed-on: #47
Reviewed-by: Bart Schuurmans <bart@minnozz.com>
This commit is contained in:
Bart Schuurmans 2024-01-14 16:19:40 +01:00
commit 64d1aadbdd

View File

@ -715,7 +715,7 @@ class Asset
LIMIT 1',
[
'id_asset' => $this->id_asset,
'id_tag' => $tag->id_tag,
'id_tag' => isset($tag) ? $tag->id_tag : null,
'date_captured' => $this->date_captured,
]);
@ -746,7 +746,7 @@ class Asset
LIMIT 1',
[
'id_asset' => $this->id_asset,
'id_tag' => $tag->id_tag,
'id_tag' => isset($tag) ? $tag->id_tag : null,
'date_captured' => $this->date_captured,
]);