Commit e3704e14 authored by Leigh B. Stoller's avatar Leigh B. Stoller

If in just one project, make it the selection in the project list.

parent 5d73237e
......@@ -88,8 +88,12 @@ function SPITFORM($formfields, $errors)
#
echo "<tr>
<td colspan=2>*Select Project:</td>
<td><select name=\"formfields[exp_pid]\">
<option value=''>Please Select &nbsp</option>\n";
<td><select name=\"formfields[exp_pid]\">\n";
# If just one project, make sure just the one option.
if (count($projlist) != 1) {
echo "<option value=''>Please Select &nbsp</option>\n";
}
while (list($project) = each($projlist)) {
$selected = "";
......
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