Commit cc2a5dea authored by gbyte.co's avatar gbyte.co

Reset array of entity types in config after unsetting a value

parent 3a7e5817
......@@ -102,8 +102,7 @@ class Simplesitemap {
$enabled_entity_types = $this->getSetting('enabled_entity_types');
if (($key = array_search($entity_type_id, $enabled_entity_types)) !== FALSE) {
unset ($enabled_entity_types[$key]);
array_values($enabled_entity_types);
$this->saveSetting('enabled_entity_types', $enabled_entity_types);
$this->saveSetting('enabled_entity_types', array_values($enabled_entity_types));
}
// Deleting inclusion settings.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment