mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix groups et contacts par api
This commit is contained in:
parent
5898ef8d3f
commit
60db1ac833
1 changed files with 3 additions and 1 deletions
|
@ -79,6 +79,7 @@
|
|||
unset($contacts[$key]);
|
||||
continue;
|
||||
}
|
||||
$contact = $contact[0];
|
||||
|
||||
$contacts[$key] = $contact['id'];
|
||||
}
|
||||
|
@ -86,11 +87,12 @@
|
|||
//Pour chaque groupe, on récupère l'id du groupe
|
||||
foreach ($groups as $key => $name)
|
||||
{
|
||||
if ($group = $db->getFromTableWhere('groups', ['name' => $name]))
|
||||
if (!$group = $db->getFromTableWhere('groups', ['name' => $name]))
|
||||
{
|
||||
unset($groups[$key]);
|
||||
continue;
|
||||
}
|
||||
$group = $group[0];
|
||||
|
||||
$groups[$key] = $group['id'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue