Commit bbfdfbc4 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to the pid/gid default code.

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