From d7b1611719f637f5d0ae9b8f5d2b9995e15376cc Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Wed, 12 Oct 2022 21:43:06 +1300 Subject: [PATCH] FIX Ensure value is cast as string before parsing --- src/db/MarkdownText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/MarkdownText.php b/src/db/MarkdownText.php index 37ec2d9..d60570f 100644 --- a/src/db/MarkdownText.php +++ b/src/db/MarkdownText.php @@ -57,7 +57,7 @@ public function ParseMarkdown($bCache = true, $strValue = '') return $this->parsedContent; } - $parsed = !empty($strValue) ? $strValue : $this->value; + $parsed = strval(!empty($strValue) ? $strValue : $this->value); $this->extend('onBeforeParseDown', $parsed);