diff --git a/src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php b/src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php index 03f3415c..c83b07f8 100644 --- a/src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php +++ b/src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php @@ -81,11 +81,17 @@ public function insertUrl($url) /** * Return a list of URLs used by the given field and version. * - * @return bool[] An array of URLs, with urls as keys + * array An array of URLs, with urls as keys */ public function getUrlsFromUrlLink(int $fieldId, int $versionNo): array { - return $this->urlGateway->getUrlsFromUrlLink($fieldId, $versionNo); + $rows = $this->urlGateway->getUrlsFromUrlLink($fieldId, $versionNo); + $result = []; + foreach ($rows as $url) { + $result[$url] = true; + } + + return $result; } /**