* [bug#54538,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2024-09-02 02:49:39 +00:00
parent 070521b4a5
commit 8bf3dd8b3e
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -730,8 +730,8 @@ class commonModel extends model
$items[] = $item;
}
/* Fix bug 14574. */
if(end($items) == 'divider') array_pop($items);
// 如果最后一个是分割线,则删除
while(!empty($items) && end($items) === 'divider') { array_pop($items); }
return $items;
}