forked from Public/pics
Merge pull request 'Fix dereferencing $tag when null' (#47) from fix-null-tag into master
Reviewed-on: Public/pics#47 Reviewed-by: Bart Schuurmans <bart@minnozz.com>
This commit is contained in:
commit
64d1aadbdd
@ -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,
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user