* fix loophole.

This commit is contained in:
王怡栋
2021-10-08 10:35:38 +08:00
parent a14fc4e7f9
commit 88a5c5d207
2 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -691,7 +691,7 @@ class commonModel extends model
}
/* Fix bug 14574. */
if(array_slice($items, -1)[0] == 'divider') array_pop($items);
if(end($items) == 'divider') array_pop($items);
return $items;
}