Fix agent record selected

`$agent_record` is a string not a Boolean
This commit is contained in:
agree 2021-01-30 22:40:26 -05:00 committed by GitHub
parent 44a5809319
commit 50d2d49b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -588,8 +588,8 @@
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='agent_record'>\n";
echo " <option value='true' ".($agent_record ? "selected='selected'" : '')." >".$text['option-true']."</option>\n";
echo " <option value='false' ".(!$agent_record ? "selected='selected'" : '').">".$text['option-false']."</option>\n";
echo " <option value='true' ".($agent_record == "true" ? "selected='selected'" : '')." >".$text['option-true']."</option>\n";
echo " <option value='false' ".($agent_record != "true" ? "selected='selected'" : '').">".$text['option-false']."</option>\n";
echo " </select>\n";
echo "<br />\n";
echo $text['description-record_template']."\n";