Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 20, 2022
2 parents df660fb + b80da96 commit df8dd22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/xmlsitemap/functions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,12 @@ function XMLSMAP_update($type = null, $include = null, $exclude = null)

// Set types
$types = $_XMLSMAP_CONF['types'];
if ($include !== null) {
if ($include !== null && (($index = array_search($include, $types)) === false)) { // Only include it if not already in types array
if (($index = array_search($exclude, $types)) === false) {
$types[] = $include;
}
}

if ($exclude !== null) {
if (($index = array_search($exclude, $types)) !== false) {
unset($types[$index]);
Expand Down

0 comments on commit df8dd22

Please sign in to comment.