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

Fix removeSitemapVariants()

parent a1b6fbac
......@@ -219,7 +219,7 @@ class SimplesitemapManager {
->set('variants', array_diff_key($this->getSitemapVariants($type, FALSE), $variants_per_type))
->save();
}
if (in_array($this->settings->getSetting('default_variant', ''), $variant_names)) {
if (in_array($this->settings->getSetting('default_variant', ''), (array) $variant_names)) {
$this->settings->saveSetting('default_variant', '');
}
}
......
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