forked from GNUsocial/gnu-social
avoid producing notices for last element in MoreMenu
This commit is contained in:
parent
2b55641a9f
commit
5e61ec5e01
@ -81,7 +81,12 @@ class MoreMenu extends Menu
|
||||
}
|
||||
|
||||
foreach ($toShow as $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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user