]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6722 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 13 Feb 2024 19:00:06 +0000 (20:00 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 13 Feb 2024 19:00:06 +0000 (20:00 +0100)
app/Fluidbook/Link/LinksData.php

index f588c8dc0637587adcde1b2742701d26f558d202..7213e2d0091f7de2504f8b0b7705006c59154d9c 100644 (file)
@@ -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;