From 96ab6dbca2327c4979890ddd43ef47e88b7d2f34 Mon Sep 17 00:00:00 2001 From: lichengjun Date: Mon, 13 Sep 2021 04:48:16 +0000 Subject: [PATCH] * * Fix bug#14574 --- module/common/model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/common/model.php b/module/common/model.php index e42b58def5..4af48b0e79 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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; }