mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 09:26:27 +02:00
modifie la liste des contacts si on a pas l'option des contacts étendus
This commit is contained in:
parent
17789f5b27
commit
f3d36cd8a4
1 changed files with 10 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue