only one of tags/image-specific-tags needs filling

This commit is contained in:
Shish 2012-05-22 12:14:46 +01:00
parent 2347b1fab8
commit 2d451224dd

View File

@ -215,7 +215,9 @@ class Upload extends Extension {
private function tags_for_upload_slot($id) { private function tags_for_upload_slot($id) {
if(isset($_POST["tags$id"])) { if(isset($_POST["tags$id"])) {
$tags = array_merge(Tag::explode($_POST['tags']), Tag::explode($_POST["tags$id"])); # merge then explode, not explode then merge - else
# one of the merges may create a surplus "tagme"
$tags = Tag::explode($_POST['tags'] . " " . $_POST["tags$id"]);
} }
else { else {
$tags = Tag::explode($_POST['tags']); $tags = Tag::explode($_POST['tags']);