bugfixing template-variables list when editing mail-templates; refs #496

Signed-off-by: Marco Vogt (vogti) <mail@mdvogt.de>
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Marco Vogt (vogti)
2014-12-12 20:06:14 +01:00
committed by Michael Kaufmann (d00p)
parent 6bfa95f8a8
commit 28b7cd6e90
2 changed files with 11 additions and 9 deletions

View File

@@ -449,6 +449,8 @@ if ($action == '') {
);
Database::pexecute($result_stmt, array('id' => $mailbodyid));
$result = $result_stmt->fetch(PDO::FETCH_ASSOC);
$template_name = str_replace('_mailbody', '', $result['varname']);
$result = htmlentities_array($result);
$mailbody = $result['value'];