All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit a94c1ba0 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 879381d2
...@@ -105,7 +105,7 @@ function SPITFORM($formfields, $errors) ...@@ -105,7 +105,7 @@ function SPITFORM($formfields, $errors)
echo "</script>\n"; echo "</script>\n";
$amlist = array(); $amlist = array();
if ($editing && ISADMIN()) { if ($viewing && ISADMIN()) {
while (list($am) = each($am_array)) { while (list($am) = each($am_array)) {
$amlist[] = $am; $amlist[] = $am;
} }
...@@ -118,7 +118,7 @@ function SPITFORM($formfields, $errors) ...@@ -118,7 +118,7 @@ function SPITFORM($formfields, $errors)
# When editing, pass through a single value. The template treats a # When editing, pass through a single value. The template treats a
# a single value as a read-only field. # a single value as a read-only field.
$plist = array(); $plist = array();
if ($editing) { if ($viewing) {
$plist[] = $formfields["profile_pid"]; $plist[] = $formfields["profile_pid"];
} }
else { else {
......
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