diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 380908b837014b21feb8cf391069ca3d4de9b4ac..221be627f4678ed9330d0e66ffaeceaf33aab1f5 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";