Skip to content

Commit 4298109

Browse files
committed
Bar: fixed Undefined index [Closes #271]
1 parent 11cb464 commit 4298109

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Tracy/assets/Bar/info.panel.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $countClasses = function ($list) {
2626
};
2727

2828
$opcache = function_exists('opcache_get_status') ? @opcache_get_status() : null; // @ can be restricted
29-
$cachedFiles = array_intersect(array_keys((array) $opcache['scripts']), get_included_files());
29+
$cachedFiles = isset($opcache['scripts']) ? array_intersect(array_keys($opcache['scripts']), get_included_files()) : [];
3030

3131
$info = [
3232
'Execution time' => number_format($this->time * 1000, 1, '.', '') . ' ms',

0 commit comments

Comments
 (0)