avoid inserting same account_id multiple times, if it was somehow more then once in info_responsible

This commit is contained in:
Ralf Becker 2016-09-12 15:07:31 +02:00
parent 9a242207c0
commit 11e76ff9da

View File

@ -855,7 +855,7 @@ function infolog_upgrade16_1_001()
"info_responsible<>'0' AND info_responsible<>''", __LINE__, __FILE__,
$n*$chunk_size, 'ORDER BY info_id', 'infolog', $chunk_size) as $row)
{
foreach(explode(',', $row['info_responsible']) as $responsible)
foreach(array_unique(explode(',', $row['info_responsible'])) as $responsible)
{
if ($responsible)
{