parseerror on bad group id

This commit is contained in:
osaajani 2020-09-02 01:08:40 +02:00
parent 1fecdcfc89
commit fe4f85117d
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ namespace controllers\publics;
$nb_groups_update = 0;
foreach ($groups as $id => $group)
{
foreach ($group['contacts_ids'] as $key => $value)
{
$group['contacts_ids'][$key] = (int) $value;
}
$nb_groups_update += (int) $this->internal_group->update_for_user($_SESSION['user']['id'], $id, $group['name'], $group['contacts_ids']);
}