From f694a521e3cd95e5a765d2ce92e43b9f5a214078 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 13 Feb 2024 20:00:06 +0100 Subject: [PATCH] wait #6722 @1 --- app/Fluidbook/Link/LinksData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5