Skip to content

Commit

Permalink
Tweak code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 9, 2024
1 parent 995e7c2 commit 064e079
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -1448,9 +1448,11 @@ public static function include(Environment $env, $context, $template, $variables
if (!$ignoreMissing) {
throw $e;
}

return '';
}

return $loaded ? $loaded->render($variables) : '';
return $loaded->render($variables);
} finally {
if ($isSandboxed && !$alreadySandboxed) {
$sandbox->disableSandbox();
Expand Down

0 comments on commit 064e079

Please sign in to comment.