From fbc9c85ebe6fee0bd93c88e3f5c046172291f2dd Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Mon, 18 Mar 2002 06:07:29 +0000 Subject: Bug 92905 - perl error when editing user and no groups defined r=justdave x 2 --- editusers.cgi | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index ad00dd9ae..bc864bcf0 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -145,17 +145,17 @@ sub EmitFormElements ($$$$$) print "\n|\n"; } print "User is a member of these groups\n"; - } - while (MoreSQLData()) { - my ($bit,$name,$description,$checked,$blchecked) = FetchSQLData(); - print "\n"; - if ($editall) { - $blchecked = ($blchecked) ? "CHECKED" : ""; - print ""; + while (MoreSQLData()) { + my ($bit,$name,$description,$checked,$blchecked) = FetchSQLData(); + print "\n"; + if ($editall) { + $blchecked = ($blchecked) ? "CHECKED" : ""; + print ""; + } + $checked = ($checked) ? "CHECKED" : ""; + print ""; + print "" . ucfirst($name) . ": $description\n"; } - $checked = ($checked) ? "CHECKED" : ""; - print ""; - print "" . ucfirst($name) . ": $description\n"; } print "\n"; @@ -171,17 +171,17 @@ sub EmitFormElements ($$$$$) print "\n|\n"; } print "User has these priveleges\n"; - } - while (MoreSQLData()) { - my ($bit,$name,$description,$checked,$blchecked) = FetchSQLData(); - print "\n"; - if ($editall) { - $blchecked = ($blchecked) ? "CHECKED" : ""; - print ""; + while (MoreSQLData()) { + my ($bit,$name,$description,$checked,$blchecked) = FetchSQLData(); + print "\n"; + if ($editall) { + $blchecked = ($blchecked) ? "CHECKED" : ""; + print ""; + } + $checked = ($checked) ? "CHECKED" : ""; + print ""; + print "" . ucfirst($name) . ": $description\n"; } - $checked = ($checked) ? "CHECKED" : ""; - print ""; - print "" . ucfirst($name) . ": $description\n"; } } else { print "Groups and
Priveleges:"; -- cgit v1.2.3-24-g4f1b