Commit 5e61ec5e authored by Evan Prodromou's avatar Evan Prodromou

avoid producing notices for last element in MoreMenu

parent 2b55641a
......@@ -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);
}
......
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