modifie la liste des contacts si on a pas l'option des contacts étendus

This commit is contained in:
Romain Guerrero 2016-02-08 23:53:34 +01:00
parent 17789f5b27
commit f3d36cd8a4

View file

@ -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,