fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 03:26:52 +00:00
parent bf3dea554a
commit e5e57ce8c5

View File

@ -291,7 +291,7 @@ final class BackendController extends Controller
$toParse = \file_get_contents($path);
$summary = \file_get_contents(__DIR__ . '/../../../Developer-Guide/SUMMARY.md');
if (\stripos($toParse, '```mermaid') !== false) {
if ($toParse !== false && \stripos($toParse, '```mermaid') !== false) {
$this->loadMermaid($response);
}