Menu bug: separator not removed if it's the first visible item on a menu

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
If a group can see the admin menu, typically because of being able to see the moderate stuff, but don't have access to anything further up that menu, they're given the separator, then the rest of the menu contents. We need to have it skip the separator if it's the first item in a menu.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Menu bug: separator not removed if it's the first visible item on a menu
« Reply #1, on November 1st, 2011, 02:09 PM »
Eh..?
I have code in the menu that supposedly prevents that... Check out after the menu is generated, there's a foreach loop that unsets separators if they're at the beginning or the end, or if there are two joint separators inside a menu...

I don't have time to check out the code right now, maybe it's only broken for starter separators, I don't know.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278