Fix load lang

This commit is contained in:
Laurent Destailleur 2021-01-05 10:39:53 +01:00
parent f8fe7b5a0e
commit 40645ea24d

View File

@ -137,10 +137,13 @@ class box_fournisseurs extends ModeleBoxes
$line++;
}
if ($num == 0) $this->info_box_contents[$line][0] = array(
'td' => 'class="center opacitymedium"',
'text'=>$langs->trans("NoRecordedSuppliers"),
);
if ($num == 0) {
$langs->load("suppliers");
$this->info_box_contents[$line][0] = array(
'td' => 'class="center opacitymedium"',
'text'=>$langs->trans("NoRecordedSuppliers"),
);
}
$this->db->free($result);
} else {