Commit 0897c253 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent 85276ba6
......@@ -185,8 +185,12 @@ function SPITFORM($formfields, $errors)
# to let the user choose.
#
if (count($projlist) == 1 || $editing) {
$pid = ($editing ? $formfields["profile_pid"] : $projlist[0]);
if ($editing) {
$pid = $formfields["profile_pid"];
}
else {
list($pid) = each($projlist);
}
$formatter("profile_pid", null,
"<p class='form-control-static'>$pid</p>");
echo "<input type='hidden' name='formfields[profile_pid]' ".
......
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