Commit bfce32d9 authored by Russ Fish's avatar Russ Fish

Minor nits.

parent 3f5e4ef8
......@@ -204,7 +204,7 @@ class Experiment
# There are no return value(s) to parse at the end of the output.
# Unlink this here, so that the file is left behind in case of error.
# We can then create the experiment by hand from the xmlfile, if desired.
# We can then edit the experiment by hand from the xmlfile, if desired.
unlink($xmlname);
return true;
}
......
......@@ -280,17 +280,18 @@ $project = null;
#
# Project:
#
if (!isset($formfields["pid"]) || $formfields["pid"] == "") {
if (!isset($formfields["pid"]) ||
strcmp($formfields["pid"], "") == 0) {
$errors["Project"] = "Not Selected";
}
elseif (!TBvalid_pid($formfields["pid"])) {
$errors["Project"] = "Invalid project name";
}
elseif (! ($project = Project::Lookup($formfields["pid"]))) {
elseif (!($project = Project::Lookup($formfields["pid"]))) {
$errors["Project"] = "Invalid project name";
}
elseif (!$project->AccessCheck($this_user, $TB_PROJECT_MAKEOSID)) {
$errors["Project"] = "Not enough permission";
$errors["Project"] = "Not enough permission";
}
FormValidate($form, $errors, $fields, $formfields);
......
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