* * Fix bug#14574

This commit is contained in:
lichengjun
2021-09-13 04:48:16 +00:00
parent 3e59e58fdb
commit 96ab6dbca2
+5
View File
@@ -687,7 +687,12 @@ class commonModel extends model
$item->url = helper::createLink($currentModule, $currentMethod, $vars, '', 0, 0, 1);
$items[] = $item;
}
/* Fix bug 14574. */
if(array_slice($items, -1)[0] == 'divider') array_pop($items);
return $items;
}