Commit 85720add authored by Mac Newbold's avatar Mac Newbold

Remove quotes around swap reasons, and accept blank swap reasons.

parent 062bd816
......@@ -157,11 +157,11 @@ if ($submit) {
# exp name is always sent...
$str = "expt_name=\"$exp_name\"";
$mail=0;
if (isset($noswap) && $noswap !="") {
if (isset($noswap)) {
$str .= ",noswap_reason=\"$noswap\"";
$mail=1;
}
if (isset($noidleswap) && $noidleswap !="") {
if (isset($noidleswap)) {
$str .= ",noidleswap_reason=\"$noidleswap\"";
$mail=1;
}
......
......@@ -592,8 +592,8 @@ function SHOWEXP($pid, $eid, $edit=0) {
$autoswap_str= "<input type=text size=3 name=autoswap ".
"value=\"$autoswap_hrs\"> hour".($autoswap_hrs==1 ? "" : "s");
} else {
$noswap = "(\"$noswap_reason\")";
$noidleswap = "(\"$noidleswap_reason\")";
$noswap = "($noswap_reason)";
$noidleswap = "($noidleswap_reason)";
$autoswap_str= $autoswap_hrs." hour".($autoswap_hrs==1 ? "" : "s");
}
if ($edit && ISADMIN() ) {
......
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