mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-30 05:16:28 +02:00
Merge cdedb023d7
into a6f849cfce
This commit is contained in:
commit
21a0c853a4
1 changed files with 3 additions and 1 deletions
|
@ -80,18 +80,20 @@
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$contact = $contact[0];
|
||||||
$contacts[$key] = $contact['id'];
|
$contacts[$key] = $contact['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
//Pour chaque groupe, on récupère l'id du groupe
|
//Pour chaque groupe, on récupère l'id du groupe
|
||||||
foreach ($groups as $key => $name)
|
foreach ($groups as $key => $name)
|
||||||
{
|
{
|
||||||
if ($group = $db->getFromTableWhere('groups', ['name' => $name]))
|
if (!$group = $db->getFromTableWhere('groups', ['name' => $name]))
|
||||||
{
|
{
|
||||||
unset($groups[$key]);
|
unset($groups[$key]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$group = $group[0];
|
||||||
$groups[$key] = $group['id'];
|
$groups[$key] = $group['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue