diff --git a/lib/moremenu.php b/lib/moremenu.php index fa335b3c7b..8aed58a921 100644 --- a/lib/moremenu.php +++ b/lib/moremenu.php @@ -81,7 +81,12 @@ class MoreMenu extends Menu } foreach ($toShow as $item) { - list($actionName, $args, $label, $description, $id) = $item; + if (count($item) == 5) { + list($actionName, $args, $label, $description, $id) = $item; + } else { + list($actionName, $args, $label, $description) = $item; + $id = null; + } $this->item($actionName, $args, $label, $description, $id); }