Hi guys,
The menu module i18nmenu continues to return a warning:

warning: Invalid argument supplied for foreach() in i18nmenu.module on line 114

It seems that i18nmenu_localize_tree don't recognize the case when the menu have not any item translated.
I think it's necessary to add a IF condition before start the FOREACH:

<?php
foreach ($tree as $index => $item) {
?>

to

<?php
if ($tree) {
  foreach ($tree as $index => $item) {
?>

Best regards,
hachreak

Comments

joseph.olstad’s picture

Issue summary: View changes
Status: Active » Closed (outdated)