Commit bf43cc08 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 252190: Fix unitialized value in editusers.cgi

r=vlad a=justdave
parent 5013f383
...@@ -135,9 +135,9 @@ sub EmitFormElements ($$$$) ...@@ -135,9 +135,9 @@ sub EmitFormElements ($$$$)
if($user ne "") { if($user ne "") {
print "</TR><TR><TH VALIGN=TOP ALIGN=RIGHT>Group Access:</TH><TD><TABLE><TR>"; print "</TR><TR><TH VALIGN=TOP ALIGN=RIGHT>Group Access:</TH><TD><TABLE><TR>";
SendSQL("SELECT groups.id, groups.name, groups.description, " . SendSQL("SELECT groups.id, groups.name, groups.description, " .
"MAX(grant_type = " . GRANT_DIRECT . "), " . "MAX(IF(grant_type = " . GRANT_DIRECT . ", 1, 0))," .
"MAX(grant_type = " . GRANT_DERIVED . "), " . "MAX(IF(grant_type = " . GRANT_DERIVED . ", 1, 0))," .
"MAX(grant_type = " . GRANT_REGEXP . ") " . "MAX(IF(grant_type = " . GRANT_REGEXP . ", 1, 0))" .
"FROM groups " . "FROM groups " .
"LEFT JOIN user_group_map " . "LEFT JOIN user_group_map " .
"ON user_group_map.group_id = groups.id " . "ON user_group_map.group_id = groups.id " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment