Fix undefined key in array
This commit is contained in:
@ -85,7 +85,7 @@ class SiteMapGenerator implements DataProviderInterface, EventSubscriberInterfac
|
||||
return [];
|
||||
}
|
||||
|
||||
if ($data['draft']) {
|
||||
if (array_key_exists('draft', $data) && $data['draft']) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user