fix bug when editing articles
authorJoshua Rüsweg <josh@wcflabs.de>
Sun, 29 Jan 2017 17:22:11 +0000 (18:22 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Jan 2017 17:22:11 +0000 (18:22 +0100)
… without having the permission to use media files.

wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php

index c178b7a997bd819e419665ebc72f4c76a71a1806..9d53c89e0c4a2ead92c58c43596656d79dada1fa 100644 (file)
@@ -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();