From 944a47182ab83e591499234e0f1992246c842940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cankush=5Fm=E2=80=9D?= Date: Thu, 14 Jun 2018 14:39:47 +0530 Subject: [PATCH] =?UTF-8?q?Bug=20#128729=20fix:=202Checkout=20payment=20pl?= =?UTF-8?q?ugin=20-=20INS=20check=20missing=20in=20plug=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/plugins/2checkout/2checkout.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/plugins/2checkout/2checkout.php b/code/plugins/2checkout/2checkout.php index 53316d4..a8e47fb 100755 --- a/code/plugins/2checkout/2checkout.php +++ b/code/plugins/2checkout/2checkout.php @@ -193,10 +193,7 @@ public function onTP_Processpayment($data, $vars = array()) // If data is not posted then maybe its phishing or spam attack if (empty($vars) || empty($data)) { - if (!$isValid) - { - throw new Exception(JText::_('PLG_PAYMENT_2CHECKOUT_ERR_SPAM')); - } + throw new Exception(JText::_('PLG_PAYMENT_2CHECKOUT_ERR_SPAM')); } $isValid = true;