From 7b3b0840547cb34ac640493a378fe4c9aea860a0 Mon Sep 17 00:00:00 2001 From: Aleksey Lynnyk Date: Sat, 15 Dec 2012 12:34:28 +0200 Subject: [PATCH] Update core/components/quip/controllers/web/ThreadReply.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix issue when QuipReply receive not empty $_POST but without postAction and return errors with empty fields: name, email etc...  --- core/components/quip/controllers/web/ThreadReply.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/components/quip/controllers/web/ThreadReply.php b/core/components/quip/controllers/web/ThreadReply.php index 66dc249..854dad8 100644 --- a/core/components/quip/controllers/web/ThreadReply.php +++ b/core/components/quip/controllers/web/ThreadReply.php @@ -140,7 +140,7 @@ public function process() { /* handle POST */ $this->hasPreview = false; - if (!empty($_POST)) { + if (!empty($_POST) && !empty($_POST[$this->getProperty('postAction','quip-post')])) { $this->handlePost(); } @@ -339,4 +339,4 @@ public function checkForModeration() { } } } -return 'QuipThreadReplyController'; \ No newline at end of file +return 'QuipThreadReplyController';