From f3d36cd8a450cf6d5b669743b271fd5bfd22254a Mon Sep 17 00:00:00 2001 From: Romain Guerrero Date: Mon, 8 Feb 2016 23:53:34 +0100 Subject: [PATCH] =?UTF-8?q?modifie=20la=20liste=20des=20contacts=20si=20on?= =?UTF-8?q?=20a=20pas=20l'option=20des=20contacts=20=C3=A9tendus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/contacts.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/controllers/contacts.php b/controllers/contacts.php index 48d95e9..7527a10 100755 --- a/controllers/contacts.php +++ b/controllers/contacts.php @@ -23,11 +23,16 @@ global $db; //Recupération des nombres des 4 panneaux d'accueil - $contacts = $db->getFromTableWhere('contacts', array(), '', false, false, false, array(array( - 'table' => 'contacts_infos', - 'type' => 'LEFT', - 'on' => 'contacts_infos.id_contact = contacts.id' - ))); + if (RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS) + { + $contacts = $db->getFromTableWhere('contacts', array(), '', false, false, false, array(array( + 'table' => 'contacts_infos', + 'type' => 'LEFT', + 'on' => 'contacts_infos.id_contact = contacts.id' + ))); + } else { + $contacts = $db->getFromTableWhere('contacts'); + } $this->render('contacts/default', array( 'contacts' => $contacts,