Browse Source

0.9.4

pull/1/head
Fred Tempez 4 years ago
parent
commit
81399c30c9
  1. 2
      module/blog/blog.php

2
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'),

Loading…
Cancel
Save