WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
--- /home/doekia/WebsiteBaker/wb2.7rc2/wb/modules/show_menu2/include.php 2007-09-06 22:15:28.000000000 +0200+++ include.php 2008-03-31 15:04:39.000000000 +0200@@ -485,8 +485,8 @@ // get this once for performance. We really should be calling only need to // call $wb->get_group_id() but that outputs a warning notice if the // groupid isn't set in the session, so we check it first here.- $currGroup = array_key_exists('GROUP_ID', $_SESSION) ? - ','.$wb->get_group_id().',' : 'NOGROUP';+ $currGroups = array_key_exists('GROUP_ID', $_SESSION) ? + $wb->get_groups_id() : array('NOGROUP'); // we request all matching rows from the database for the menu that we // are about to create it is cheaper for us to get everything we need @@ -506,7 +506,7 @@ // following limit to the SQL query above: // (visibility <> "private" OR $wb->get_group_id() IN viewing_groups) if ($page['visibility'] == 'private' - && false === strstr(",{$page['viewing_groups']},", $currGroup)) + && count(array_intersect($currGroups,explode(',',$page['viewing_groups']))) == 0 ) { continue; }