Commit c9b4e5d4 authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Changing the check of the lastmod parameter provided by plugins.

parent 60104a70
......@@ -39,7 +39,7 @@ abstract class LinkGeneratorBase extends PluginBase implements LinkGeneratorInte
$this->entity_paths[$i]['path'] = $path['path'];
$this->entity_paths[$i]['priority'] = !empty($path['priority']) ? $path['priority'] : $bundle_settings['priority'];
$this->entity_paths[$i]['lastmod'] = !empty($path['lastmod']) && (int)$path['lastmod'] == $path['lastmod'] ? date_iso8601($path['lastmod']) : NULL;
$this->entity_paths[$i]['lastmod'] = isset($path['lastmod']) && is_numeric($path['lastmod']) ? date_iso8601($path['lastmod']) : NULL;
$i++;
}
}
......
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