diff --git a/html/includes/forms/convert-template.inc.php b/html/includes/forms/convert-template.inc.php
index d98cf82241..3692ece0ed 100644
--- a/html/includes/forms/convert-template.inc.php
+++ b/html/includes/forms/convert-template.inc.php
@@ -78,7 +78,7 @@ foreach (explode(PHP_EOL, $vars['template']) as $line) {
'@foreach ($alert->contacts as $key => $value)',
' @endforeach ',
'@php echo \1; @endphp ',
- '$value[\'string\']',
+ '{{ $value[\'string\'] }}',
'{{ $\1[\'\2\'] }}',
'{{ $alert->\1 }}',
];
diff --git a/includes/alerts.inc.php b/includes/alerts.inc.php
index b0c224aae4..f385a0d253 100644
--- a/includes/alerts.inc.php
+++ b/includes/alerts.inc.php
@@ -391,7 +391,7 @@ function populate($txt, $wrap = true)
function RunJail($code, $obj)
{
$ret = '';
- eval($code);
+ @eval($code);
return $ret;
}//end RunJail()
@@ -808,7 +808,7 @@ function ExtTransports($obj)
global $config;
$tmp = false;
$type = new Template;
-
+
// If alert transport mapping exists, override the default transports
$transport_maps = AlertUtil::getAlertTransports($obj['alert_id']);