Skip to content

Commit 5d9637e

Browse files
committed
strict fix
1 parent 458bb14 commit 5d9637e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tracy/Bar/Bar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function dispatchAssets(): bool
185185
header('X-Tracy-Ajax: 1'); // session must be already locked
186186
}
187187

188-
if ($this->useSession && $asset && preg_match('#^content(-ajax)?\.(\w+)$#', $asset, $m)) {
188+
if ($this->useSession && is_string($asset) && preg_match('#^content(-ajax)?\.(\w+)$#', $asset, $m)) {
189189
$session = &$_SESSION['_tracy']['bar'][$m[2]];
190190
header('Content-Type: application/javascript; charset=UTF-8');
191191
header('Cache-Control: max-age=60');

0 commit comments

Comments
 (0)