Leading blank lines in menu file cause error
A dynamic web menu based on PHP, Javascript and optionally a DB.
Brought to you by:
ank-99
This is a deplication of bug number 1518999 from the phplayersmenu project:
Insertion of a blank line prior to the menu structure
defined in a txt file is sufficient to cause an
"Undefined Offset" error on line 418 of
layersmenu.inc.php. As a result of the error, submenus
will not be expanded correctly.
Blank lines inserted between two menu items does not
cause a similar problem.
Trailing blank lines do not cause a similar problem.
This behavior was discovered while adding comments to
menu structure files. Although a leading comment does
not cause a problem, a blank line between the comment
and the beginning of the menu structure causes the
error mentioned above.
This could not be verified in v 4.0.4 and behaviour is normal.