From: Vincent Vanwaelscappel Date: Tue, 13 Feb 2024 19:00:06 +0000 (+0100) Subject: wait #6722 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f694a521e3cd95e5a765d2ce92e43b9f5a214078;p=fluidbook-toolbox.git wait #6722 @1 --- diff --git a/app/Fluidbook/Link/LinksData.php b/app/Fluidbook/Link/LinksData.php index f588c8dc0..7213e2d00 100644 --- a/app/Fluidbook/Link/LinksData.php +++ b/app/Fluidbook/Link/LinksData.php @@ -247,7 +247,7 @@ class LinksData { $res = []; foreach ($items as $item) { - if (empty($item['uid'])) { + if (empty($item['uid']) || isset($res[$item['uid']])) { $item['uid'] = self::generateUID(); } $res[$item['uid']] = $item;