From 27e893be1d3e23241d5829c291d9c6c39cbda4d8 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 18 Mar 2022 13:13:13 +0100 Subject: [PATCH] FIX missing element name --- htdocs/core/boxes/box_contacts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/boxes/box_contacts.php b/htdocs/core/boxes/box_contacts.php index 51745b1cb2e..daa5b9376bc 100644 --- a/htdocs/core/boxes/box_contacts.php +++ b/htdocs/core/boxes/box_contacts.php @@ -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);