Skip to content
Snippets Groups Projects
Commit 542fc4d7 authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1370332 by illmasterc, Dave Reid: Fixed fatal error if menu_link_load()...

Issue #1370332 by illmasterc, Dave Reid: Fixed fatal error if menu_link_load() did not return a valid menu link array.
parent 9773d8b4
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,9 @@ function xmlsitemap_menu_xmlsitemap_process_menu_links(array $mlids, array $xmls
foreach ($mlids as $mlid) {
$menu_item = menu_link_load($mlid);
if (empty($menu_item)) {
continue;
}
if (!empty($xmlsitemap)) {
$menu_item['xmlsitemap'] = $xmlsitemap;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment