From 11e76ff9dae12b816d0585bb8f1aa58b40404708 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Sep 2016 15:07:31 +0200 Subject: [PATCH] avoid inserting same account_id multiple times, if it was somehow more then once in info_responsible --- infolog/setup/tables_update.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/setup/tables_update.inc.php b/infolog/setup/tables_update.inc.php index bf07bcc370..ce0a4a5c7a 100644 --- a/infolog/setup/tables_update.inc.php +++ b/infolog/setup/tables_update.inc.php @@ -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) {