Skip to content

Commit 064e079

Browse files
committed
Tweak code
1 parent 995e7c2 commit 064e079

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Extension/CoreExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,9 +1448,11 @@ public static function include(Environment $env, $context, $template, $variables
14481448
if (!$ignoreMissing) {
14491449
throw $e;
14501450
}
1451+
1452+
return '';
14511453
}
14521454

1453-
return $loaded ? $loaded->render($variables) : '';
1455+
return $loaded->render($variables);
14541456
} finally {
14551457
if ($isSandboxed && !$alreadySandboxed) {
14561458
$sandbox->disableSandbox();

0 commit comments

Comments
 (0)