[-] MO : #PSCFI-4689 - ERROR Module contacts from New themes prestashop

This commit is contained in:
vAugagneur
2012-01-17 09:35:01 +00:00
parent 324dd57311
commit 9d9ce7170e
+3 -3
View File
@@ -57,10 +57,10 @@ class blockcontact extends Module
{ {
$html = ''; $html = '';
// If we try to update the settings // 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_telnumber', Tools::getValue('telnumber'));
Configuration::updateValue('blockcontact_email', (($_POST['email'] != '') ? $_POST['email']: '')); Configuration::updateValue('blockcontact_email', Tools::getValue('email'));
$html .= '<div class="confirm">'.$this->l('Configuration updated').'</div>'; $html .= '<div class="confirm">'.$this->l('Configuration updated').'</div>';
} }