Fix big offset for Hook::addMenuItem
This commit is contained in:
parent
95b7a0781e
commit
c83037a3f7
|
|
@ -39,6 +39,10 @@ class Hook
|
|||
$offset++;
|
||||
}
|
||||
|
||||
if ($position >= $offset) {
|
||||
$new[] = $menu;
|
||||
}
|
||||
|
||||
$event->menu[$category] = $new;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user