FIX missing element name

This commit is contained in:
Regis Houssin 2022-03-18 13:13:13 +01:00
parent 1d8f170d32
commit 27e893be1d

View File

@ -79,6 +79,9 @@ class box_contacts extends ModeleBoxes
$this->max = $max;
$contactstatic = new Contact($this->db);
$societestatic = new Societe($this->db);
$this->info_box_head = array('text' => $langs->trans("BoxTitleLastModifiedContacts", $max));
if ($user->rights->societe->lire && $user->rights->societe->contact->lire) {
@ -126,9 +129,6 @@ class box_contacts extends ModeleBoxes
if ($result) {
$num = $this->db->num_rows($result);
$contactstatic = new Contact($this->db);
$societestatic = new Societe($this->db);
$line = 0;
while ($line < $num) {
$objp = $this->db->fetch_object($result);