From eb6008bb4da7f0f0272917bcec6b8a1616c9f151 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 11 Apr 2012 16:26:45 +0200 Subject: [PATCH] Fix: missing langs object --- htdocs/core/class/html.form.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index e36b7092848..b34ea5a2b2e 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2885,7 +2885,9 @@ class Form * @return int Nb of loaded lines, 0 if already loaded, <0 if KO */ function load_cache_vatrates($country_code) - { + { + global $langs; + if (count($this->cache_vatrates)) return 0; // Cache deja charge $sql = "SELECT DISTINCT t.taux, t.recuperableonly";