Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Set user id to 0 if anonymous comment
givanz1322d08cdc52
diff --git a/app/controller/content/comment-trait.php b/app/controller/content/comment-trait.phpold mode 100755new mode 100644index 102072e..ce74ff4--- a/app/controller/content/comment-trait.php+++ b/app/controller/content/comment-trait.php@@ -61,7 +61,7 @@ trait CommentTrait {'notSpam' => $notSpam,'commentType' => $commentType,'commentName' => $commentName,- 'user_id' => $user['user_id'],+ 'user_id' => $user['user_id'] ?? false,]);list($comment) = Event :: trigger(__CLASS__, __FUNCTION__ , $comment);