Skip to content

Commit 5aff277

Browse files
authored
Merge pull request PrestaShop#106 from Hlavtox/fix-cast
Properly cast bool values
2 parents 27bca6a + 4bd085e commit 5aff277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ps_emailsubscription.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ public function uninstallPrestaShop16Module()
206206
public function getContent()
207207
{
208208
if (Tools::isSubmit('submitUpdate')) {
209-
Configuration::updateValue('NW_CONFIRMATION_EMAIL', (bool) Tools::getValue('NW_CONFIRMATION_EMAIL'));
210-
Configuration::updateValue('NW_VERIFICATION_EMAIL', (bool) Tools::getValue('NW_VERIFICATION_EMAIL'));
209+
Configuration::updateValue('NW_CONFIRMATION_EMAIL', (int) Tools::getValue('NW_CONFIRMATION_EMAIL'));
210+
Configuration::updateValue('NW_VERIFICATION_EMAIL', (int) Tools::getValue('NW_VERIFICATION_EMAIL'));
211211

212212
$conditions = [];
213213
$languages = Language::getLanguages(false);

0 commit comments

Comments
 (0)