mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +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;
|
global $db;
|
||||||
|
|
||||||
//Recupération des nombres des 4 panneaux d'accueil
|
//Recupération des nombres des 4 panneaux d'accueil
|
||||||
|
if (RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS)
|
||||||
|
{
|
||||||
$contacts = $db->getFromTableWhere('contacts', array(), '', false, false, false, array(array(
|
$contacts = $db->getFromTableWhere('contacts', array(), '', false, false, false, array(array(
|
||||||
'table' => 'contacts_infos',
|
'table' => 'contacts_infos',
|
||||||
'type' => 'LEFT',
|
'type' => 'LEFT',
|
||||||
'on' => 'contacts_infos.id_contact = contacts.id'
|
'on' => 'contacts_infos.id_contact = contacts.id'
|
||||||
)));
|
)));
|
||||||
|
} else {
|
||||||
|
$contacts = $db->getFromTableWhere('contacts');
|
||||||
|
}
|
||||||
|
|
||||||
$this->render('contacts/default', array(
|
$this->render('contacts/default', array(
|
||||||
'contacts' => $contacts,
|
'contacts' => $contacts,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue