Skip to content

Commit 6a70b1b

Browse files
committed
fix: output "0" at the end of toolbar js when Kint::$enabled_mode is false
1 parent 9e47956 commit 6a70b1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system/Debug/Toolbar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
405405
$kintScript = @Kint::dump('');
406406
Kint::$mode_default = $oldKintMode;
407407
$kintScript = substr($kintScript, 0, strpos($kintScript, '</style>') + 8);
408+
$kintScript = ($kintScript === '0') ? '' : $kintScript;
408409

409410
$script = PHP_EOL
410411
. '<script type="text/javascript" ' . csp_script_nonce() . ' id="debugbar_loader" '

0 commit comments

Comments
 (0)