Skip to content

Commit f2ac744

Browse files
committed
Fixed bug in script.php where it was checking a variable for false, whereas it is now null.
1 parent 69ed5a1 commit f2ac744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmldoc/tokens/script.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function parse(array &$tokens) : void {
5959
public function minify(array $minify) : void {
6060
if ($minify['js'] !== false && $this->content) {
6161
$func = $this->root->getConfig('js');
62-
$this->content = $func === false ? trim($this->content) : call_user_func($func, $this->content, $minify['js']);
62+
$this->content = $func === null ? trim($this->content) : call_user_func($func, $this->content, $minify['js']);
6363
}
6464
}
6565

0 commit comments

Comments
 (0)