Skip to content

Commit db8f1df

Browse files
committed
ConnectionPanel: ob_start() is protected against flush when error occurs
1 parent 9948322 commit db8f1df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridges/DatabaseTracy/ConnectionPanel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getTab()
100100
$name = $this->name;
101101
$count = $this->count;
102102
$totalTime = $this->totalTime;
103-
ob_start();
103+
ob_start(function () {});
104104
require __DIR__ . '/templates/ConnectionPanel.tab.phtml';
105105
return ob_get_clean();
106106
}
@@ -131,7 +131,7 @@ public function getPanel()
131131
$queries[] = $query;
132132
}
133133

134-
ob_start();
134+
ob_start(function () {});
135135
require __DIR__ . '/templates/ConnectionPanel.panel.phtml';
136136
return ob_get_clean();
137137
}

0 commit comments

Comments
 (0)