X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e2e6d4c1c37aff2e6b50331cb31af9d59536624f..483761be2d405d4a69c005bd407f12e6d81445b1:/widget/reply.php?ds=sidebyside 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(