Scott MacVicar
Fri 25th Jan '02, 2:41pm
This is a bug in the /admin/usergroup.php
The code which decides if the showgroup radio buttons should be shown are casusing problems when you try and update the usergroup.
if (($usergroupid != 1 and $usergroupid != 2 and $usergroupid != 3 and $usergroupid != 4 and $usergroupid != 7) or $usergroup['showgroup'] == 1) {
makeyesnocode("Viewable on <a href=\"../showgroups.php?s=$session[sessionhash]\" target=\"_blank\">Show Groups</a>?","showgroup",$usergroup[showgroup]);
}
If the usergroup is any of the above id's then $showgroup will be empty.
When you submit
there is
showgroup=$showgroup
in the sql query to update usergroup you will then get an error as there is no variable, can be sorted be surrounding $showgroup in quotes.
The code which decides if the showgroup radio buttons should be shown are casusing problems when you try and update the usergroup.
if (($usergroupid != 1 and $usergroupid != 2 and $usergroupid != 3 and $usergroupid != 4 and $usergroupid != 7) or $usergroup['showgroup'] == 1) {
makeyesnocode("Viewable on <a href=\"../showgroups.php?s=$session[sessionhash]\" target=\"_blank\">Show Groups</a>?","showgroup",$usergroup[showgroup]);
}
If the usergroup is any of the above id's then $showgroup will be empty.
When you submit
there is
showgroup=$showgroup
in the sql query to update usergroup you will then get an error as there is no variable, can be sorted be surrounding $showgroup in quotes.