FIX lang for dolistore in module.php

This commit is contained in:
ptibogxiv 2019-01-19 11:18:07 +01:00 committed by Laurent Destailleur
parent 13e7d18291
commit b3cbbc1b11

View File

@ -65,7 +65,7 @@ class Dolistore
$langtmp = explode('_', $langs->defaultlang);
$lang = $langtmp[0];
$lang_array = array('en'=>1, 'fr'=>2, 'es'=>3, 'it'=>4, 'de'=>5); // Into table ps_lang of Prestashop - 1
$lang_array = array('en'=>0, 'fr'=>1, 'es'=>2, 'it'=>3, 'de'=>4); // Into table ps_lang of Prestashop - 1
if (! in_array($lang, array_keys($lang_array))) $lang = 'en';
$this->lang = $lang_array[$lang];
}