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