From: Matthias Schmidt Date: Thu, 24 Dec 2015 09:02:48 +0000 (+0100) Subject: Fix editing newly uploaded media files X-Git-Tag: 3.0.0_Beta_1~2030^2~207^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=738b3932c0cdeb11542bb0b355c828827e38a56d;p=GitHub%2FWoltLab%2FWCF.git Fix editing newly uploaded media files --- diff --git a/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php b/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php index d8a19dc87c..f610fc5027 100644 --- a/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php @@ -94,9 +94,9 @@ class MediaEditForm extends AbstractForm { $contentData = $this->media->getI18nData(); if (!empty($contentData)) { - I18nHandler::getInstance()->setValues('altText', $contentData['altText']); - I18nHandler::getInstance()->setValues('caption', $contentData['caption']); - I18nHandler::getInstance()->setValues('title', $contentData['title']); + if (!empty($contentData['altText'])) I18nHandler::getInstance()->setValues('altText', $contentData['altText']); + if (!empty($contentData['caption'])) I18nHandler::getInstance()->setValues('caption', $contentData['caption']); + if (!empty($contentData['title'])) I18nHandler::getInstance()->setValues('title', $contentData['title']); } }