From e860e9b0759ab5f28d966d72c26414d11e3ec932 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 7 Jan 2023 19:00:32 +0100 Subject: [PATCH] l11n, unit/app and simplification fixes --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 6f6591b..3780021 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -343,7 +343,7 @@ final class ApiController extends Controller $comment->title = (string) ($request->getData('title') ?? $comment->title); $comment->contentRaw = (string) ($request->getData('plain') ?? $comment->contentRaw); $comment->content = Markdown::parse((string) ($request->getData('plain') ?? $comment->contentRaw)); - $comment->ref = $request->hasData('ref') ? (int) $request->getData('ref') : $comment->ref; + $comment->ref = $request->getData('ref', 'int'); return $comment; }