Edit{Album,Tag}: fix new tag creation
This commit is contained in:
parent
6087ebe249
commit
544944a7f5
@ -152,7 +152,7 @@ class EditAlbum extends HTMLController
|
|||||||
if (isset($_POST['changeThumbnail']))
|
if (isset($_POST['changeThumbnail']))
|
||||||
$this->processThumbnail($album);
|
$this->processThumbnail($album);
|
||||||
elseif (!empty($_POST))
|
elseif (!empty($_POST))
|
||||||
$this->processTagDetails($form, $id_tag, $album);
|
$this->processTagDetails($form, $id_tag, $album ?? null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function processThumbnail($tag)
|
private function processThumbnail($tag)
|
||||||
|
@ -130,7 +130,7 @@ class EditTag extends HTMLController
|
|||||||
if (isset($_POST['changeThumbnail']))
|
if (isset($_POST['changeThumbnail']))
|
||||||
$this->processThumbnail($tag);
|
$this->processThumbnail($tag);
|
||||||
elseif (!empty($_POST))
|
elseif (!empty($_POST))
|
||||||
$this->processTagDetails($form, $id_tag, $tag);
|
$this->processTagDetails($form, $id_tag, $tag ?? null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function processThumbnail($tag)
|
private function processThumbnail($tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user