From 83a1449e21a226dbcaf208cec99e9365e471d898 Mon Sep 17 00:00:00 2001 From: pit Date: Mon, 3 May 2010 10:24:22 +0000 Subject: [PATCH] Fix a bug on install --- htdocs/core/class/html.formadmin.class.php | 1 - htdocs/core/class/translate.class.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php index c6f8b327779..e44e11db7e8 100644 --- a/htdocs/core/class/html.formadmin.class.php +++ b/htdocs/core/class/html.formadmin.class.php @@ -93,7 +93,6 @@ class FormAdmin { print ''; } - $i++; } print ''; } diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 17ab5586d6e..adab8665104 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -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); }