From 29209bc0525852ae19ef72a640bed690ca884a1a Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 17 Jan 2012 09:35:01 +0000 Subject: [PATCH] [-] MO : #PSCFI-4689 - ERROR Module contacts from New themes prestashop git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12464 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blockcontact/blockcontact.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/blockcontact/blockcontact.php b/modules/blockcontact/blockcontact.php index 4eb8b3eb7..9c57baa48 100644 --- a/modules/blockcontact/blockcontact.php +++ b/modules/blockcontact/blockcontact.php @@ -57,10 +57,10 @@ class blockcontact extends Module { $html = ''; // If we try to update the settings - if (isset($_POST['submitModule'])) + if (Tools::isSubmit('submitModule')) { - Configuration::updateValue('blockcontact_telnumber', (preg_match('/^[0-9]+/', $_POST['telnumber']) ? $_POST['telnumber']: '')); - Configuration::updateValue('blockcontact_email', (($_POST['email'] != '') ? $_POST['email']: '')); + Configuration::updateValue('blockcontact_telnumber', Tools::getValue('telnumber')); + Configuration::updateValue('blockcontact_email', Tools::getValue('email')); $html .= '
'.$this->l('Configuration updated').'
'; }