Drupal's render() function passed the argument by reference, so we can't use the result of the menu_tree() function directly, here:

function render($empty = FALSE) {
    if (!empty($this->options['menu'])) {
      return render(menu_tree($this->options['menu']));
    }
    return '';
  }

This should be like:

function render($empty = FALSE) {
    if (!empty($this->options['menu'])) {
      $tree = menu_tree($this->options['menu']);
      return render($tree);
    }
    return '';
  }

Provided a patch with a proposed solution.

Comments

valentine94’s picture

Issue summary: View changes
vlad.dancer’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

summit’s picture

Hi,
Will this be committed please?
greetings, Martijn

valentine94’s picture

iMiksu?