From e5e57ce8c584f52cf8dd60c749f14893358b6c2e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 03:26:52 +0000 Subject: [PATCH] fix tests --- Controller/BackendController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index a1caf3b..b499c35 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -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); }