X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/dffe1a696198bbbda380d4bf0cc6300a0d1e6748..483761be2d405d4a69c005bd407f12e6d81445b1:/widget/reply.php
diff --git a/widget/reply.php b/widget/reply.php
index 9761cf2..879b53d 100644
--- a/widget/reply.php
+++ b/widget/reply.php
@@ -2,6 +2,10 @@
global $User, $Db, $Issue;
require_once 'database.inc.php';
+$journalcol = [
+ 'assign' => 'Toegewezen aan',
+];
+
if ($_POST) {
try {
$html = nl2br(htmlspecialchars($_POST['reply']));
@@ -18,7 +22,7 @@ if ($_POST) {
if (isset($Issue)) {
$row = [];
- foreach (['assign'] as $col) {
+ foreach (array_keys($journalcol) as $col) {
if (!isset($_POST[$col])) continue;
$row[$col] = $_POST[$col] ?: NULL;
}
@@ -75,7 +79,7 @@ if ($User) {
' '
. ''."\n",
'assign',
- 'Toegewezen aan',
+ $journalcol['assign'],
htmlspecialchars($Issue->assign ?? '')
);
printf(