Commit 542fc4d7 authored by Dave Reid's avatar Dave Reid

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
......@@ -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;
}
......
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