From: Joshua Rüsweg Date: Sun, 29 Jan 2017 17:22:11 +0000 (+0100) Subject: fix bug when editing articles X-Git-Tag: 3.0.2~41^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a59efa2d2bf49c37cb8b66ee2f86e95babbcbfa;p=GitHub%2FWoltLab%2FWCF.git fix bug when editing articles … without having the permission to use media files. --- diff --git a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php index c178b7a997..9d53c89e0c 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php @@ -120,7 +120,7 @@ class ArticleEditForm extends ArticleAddForm { public function readData() { if (!empty($_POST) && !WCF::getSession()->getPermission('admin.content.cms.canUseMedia')) { foreach ($this->article->getArticleContents() as $languageID => $content) { - $this->imageID[$languageID] = $content['imageID']; + $this->imageID[$languageID] = $content->imageID; } $this->readImages();