From 81399c30c9fcb940ad49c4c0d49eb42ce212543c Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 4 Apr 2018 21:20:50 +0200 Subject: [PATCH] 0.9.4 --- module/blog/blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index 6f0b201c..3a243d86 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -297,7 +297,7 @@ class blog extends common { // Crée le commentaire $commentId = helper::increment(uniqid(), $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); $this->setData(['module', $this->getUrl(0), $this->getUrl(1), 'comment', $commentId, [ - 'author' => $this->getInput('blogArticleAuthor', helper::FILTER_STRING_SHORT, false), + 'author' => $this->getInput('blogArticleAuthor', helper::FILTER_STRING_SHORT, empty($this->getInput('blogArticleUserId')) ? TRUE : FALSE), 'content' => $this->getInput('blogArticleContent', helper::FILTER_STRING_SHORT, true), 'createdOn' => time(), 'userId' => $this->getInput('blogArticleUserId'),