BUG REPORT menu_data() returns incorrect data - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: BUG REPORT menu_data() returns incorrect data (/showthread.php?tid=7821) |
menu_data() returns incorrect data - HelLViS69 - 2016-01-07 Hi all, this is my first post on this forum and I want to thank you all for this great CMS. I was creating my own menu on my site and I found that menu_data() adds pages even if they aren't added to menu. Looking at data returned, I see that there are "menu_*" array keys which are empty. Is this the right behaviour or is it a bug? I mean, if I don't add a page to the menu, it shouldn't be returned from menu_data(). Of course, I can skip those entries, just want to know if this behaviour is a feature or a bug. Code: Array RE: menu_data() returns incorrect data - shawn_a - 2016-01-08 you have to filter it on your own |