Skip to content

Commit

Permalink
Issue #3205963 by roderik, izmeez: [xmlsitemap] Fix deprecated implod…
Browse files Browse the repository at this point in the history
…e usage (fatal in PHP8)
  • Loading branch information
roderik authored and dsnopek committed Jun 30, 2021
1 parent 6bc3ad3 commit 83f2358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlsitemap.generate.inc
Expand Up @@ -198,7 +198,7 @@ function xmlsitemap_generate_chunk(stdClass $sitemap, XMLSitemapWriter $writer,
drupal_alter('query_xmlsitemap_generate', $data, $sitemap);
}

$sql = implode($query, ' ');
$sql = implode(' ', $query);
$offset = max($chunk - 1, 0) * xmlsitemap_get_chunk_size();
$limit = xmlsitemap_get_chunk_size();
$query = db_query_range($sql, $args, $offset, $limit);
Expand Down

0 comments on commit 83f2358

Please sign in to comment.