Fix big offset for Hook::addMenuItem

This commit is contained in:
printempw 2018-08-21 11:45:05 +08:00
parent 95b7a0781e
commit c83037a3f7

View File

@ -39,6 +39,10 @@ class Hook
$offset++;
}
if ($position >= $offset) {
$new[] = $menu;
}
$event->menu[$category] = $new;
});
}