From 0a59efa2d2bf49c37cb8b66ee2f86e95babbcbfa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sun, 29 Jan 2017 18:22:11 +0100 Subject: [PATCH] fix bug when editing articles MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … without having the permission to use media files. --- wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1