only set source if needed
This commit is contained in:
parent
d268380e95
commit
22fb8b3b3c
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ class ImageIO extends Extension
|
|||
$tags_to_set = $image->get_tag_array();
|
||||
$image->tag_array = [];
|
||||
send_event(new TagSetEvent($image, $tags_to_set));
|
||||
send_event(new SourceSetEvent($image, $image->source));
|
||||
if ($image->source) {
|
||||
send_event(new SourceSetEvent($image, $image->source));
|
||||
}
|
||||
} catch (ImageAdditionException $e) {
|
||||
throw new UploadException($e->error);
|
||||
}
|
||||
|
|
Reference in a new issue