Skip to content
Snippets Groups Projects

fix(generate): Fix type error when rebuild query has no results

1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -508,6 +508,11 @@ function xmlsitemap_rebuild_batch_fetch($entity, &$context) {
$query->range(0, $limit);
$result = $query->execute();
if (empty($result[$entity])) {
// If there are no more items to process we are done.
$context['finished'] = 1;
return;
}
$ids = array_keys($result[$entity]);
$info['xmlsitemap']['process callback']($ids);
Loading