Skip to content

Commit

Permalink
Fix issue replace Astroid:include when func return null
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Nov 4, 2022
1 parent 6885551 commit 7b1e74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/library/astroid/Component/Includer.php
Expand Up @@ -43,7 +43,7 @@ public static function run($content = null)

foreach ($includers as $includer) {
$func = $includer['func'];
$body = ($includer['replace'] && self::$func()) ? str_replace($includer['replace'], self::$func(), $body) : $body;
$body = ($includer['replace']) ? str_replace($includer['replace'], self::$func(), $body) : $body;
}

if ($content === null) {
Expand Down

0 comments on commit 7b1e74e

Please sign in to comment.