global $User, $Db, $Issue;
require_once 'database.inc.php';
+$journalcol = [
+ 'assign' => 'Toegewezen aan',
+];
+
if ($_POST) {
try {
$html = nl2br(htmlspecialchars($_POST['reply']));
if (isset($Issue)) {
$row = [];
- foreach (['assign'] as $col) {
+ foreach (array_keys($journalcol) as $col) {
if (!isset($_POST[$col])) continue;
$row[$col] = $_POST[$col] ?: NULL;
}
'<label for="%s">%s:</label> '
. '<input id="%1$s" name="%1$s" value="%s" />'."\n",
'assign',
- 'Toegewezen aan',
+ $journalcol['assign'],
htmlspecialchars($Issue->assign ?? '')
);
printf(