Fix undefined key in array

This commit is contained in:
Anton Vakhrushev 2025-04-13 17:07:42 +03:00
parent 63a324c437
commit 19c2801856
Signed by: av
GPG Key ID: F5BF52FC352E255A

View File

@ -85,7 +85,7 @@ class SiteMapGenerator implements DataProviderInterface, EventSubscriberInterfac
return []; return [];
} }
if ($data['draft']) { if (array_key_exists('draft', $data) && $data['draft']) {
return []; return [];
} }