Commit bbfdfbc4 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to the pid/gid default code.

parent 4e2ec868
......@@ -410,9 +410,9 @@ if (! isset($submit)) {
if (count($projlist) == 1) {
list($project, $grouplist) = each($projlist);
if (count($grouplist) == 2) {
if (count($grouplist) <= 2) {
$defaults[exp_pid] = $project;
if (strcmp($project, $grouplist[0]))
if (count($grouplist) == 1 || strcmp($project, $grouplist[0]))
$defaults[exp_gid] = $grouplist[0];
else
$defaults[exp_gid] = $grouplist[1];
......
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