Skip to content

Commit 828810b

Browse files
author
Benjamin Vison
committed
Adding validation with string to ensure proper mode is used
1 parent 52e5673 commit 828810b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Service/Mailer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(ContainerInterface $container, EngineInterface $temp
3434
$this->templating = $templating;
3535

3636
$devMode = $this->container->getParameter('nti_email.dev_mode');
37-
$this->devMode = is_array($devMode) && isset($devMode["enabled"]) && $devMode["enabled"] === true;
37+
$this->devMode = is_array($devMode) && isset($devMode["enabled"]) && $devMode["enabled"] == "true";
3838
if($this->devMode) {
3939
$this->devTo = $devMode["to"];
4040
$this->devCc = $devMode["cc"];

0 commit comments

Comments
 (0)