Fix a bug on install
This commit is contained in:
parent
70a5769698
commit
83a1449e21
@ -93,7 +93,6 @@ class FormAdmin
|
||||
{
|
||||
print '<option value="'.$key.'">'.$value.'</option>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
print '</select>';
|
||||
}
|
||||
|
||||
@ -530,7 +530,7 @@ class Translate {
|
||||
{
|
||||
$this->load("languages");
|
||||
|
||||
if ($conf->global->MAIN_SHOW_LANGUAGE_CODE)
|
||||
if (isset($conf->global->MAIN_SHOW_LANGUAGE_CODE) && $conf->global->MAIN_SHOW_LANGUAGE_CODE)
|
||||
{
|
||||
$langs_available[$dir] = $dir.': '.dol_trunc($this->trans('Language_'.$dir),$maxlength);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user