Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 29, 2020
1 parent e6b3ed4 commit 3d78b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationLatte/TemplateFactory.php
Expand Up @@ -113,7 +113,7 @@ public function createTemplate(UI\Control $control = null, string $class = null)
];

foreach ($params as $key => $value) {
if (property_exists($template, $key)) {
if ($value !== null && property_exists($template, $key)) {
$template->$key = $value;
}
}
Expand Down

0 comments on commit 3d78b7d

Please sign in to comment.