Commit 2a17cfe1 authored by Pawel G's avatar Pawel G

Fix error when all generators are removed through hook

parent 74b81873
......@@ -144,7 +144,7 @@ class Batch {
$remove_sitemap = empty($results['chunk_count']);
if (!empty($results['generate']) || $remove_sitemap) {
->generateSitemap($results['generate'], $remove_sitemap);
->generateSitemap(!empty($results['generate']) ? $results['generate'] : [], $remove_sitemap);
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