Edit{Album,Tag}: fix new tag creation

This commit is contained in:
Aaron van Geffen 2023-03-12 11:32:13 +01:00
parent 6087ebe249
commit 544944a7f5
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class EditAlbum extends HTMLController
if (isset($_POST['changeThumbnail']))
$this->processThumbnail($album);
elseif (!empty($_POST))
$this->processTagDetails($form, $id_tag, $album);
$this->processTagDetails($form, $id_tag, $album ?? null);
}
private function processThumbnail($tag)

View File

@ -130,7 +130,7 @@ class EditTag extends HTMLController
if (isset($_POST['changeThumbnail']))
$this->processThumbnail($tag);
elseif (!empty($_POST))
$this->processTagDetails($form, $id_tag, $tag);
$this->processTagDetails($form, $id_tag, $tag ?? null);
}
private function processThumbnail($tag)