diff --git a/ext/tag_edit/main.php b/ext/tag_edit/main.php index 508e18dc..2f270fd0 100644 --- a/ext/tag_edit/main.php +++ b/ext/tag_edit/main.php @@ -214,7 +214,7 @@ class TagEdit extends Extension { public function onImageInfoSet(ImageInfoSetEvent $event) { global $user; - if($user->can("edit_image_owner")) { + if($user->can("edit_image_owner") && isset($_POST['tag_edit__owner'])) { $owner = User::by_name($_POST['tag_edit__owner']); if ($owner instanceof User) { send_event(new OwnerSetEvent($event->image, $owner));