From 41ea5aa2943371cfb351da388ca9d574302451e8 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Sat, 6 Aug 2022 16:43:52 +0200 Subject: Update lib/Db/Item.php Co-authored-by: Sean Molenaar Signed-off-by: Benjamin Brahmer --- lib/Db/Item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 8c46a4973..447d8de5b 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -170,10 +170,9 @@ class Item extends Entity implements IAPI, \JsonSerializable ? implode('', $this->getCategories()) : ''; + $stripedBody = ""; if (!is_null($this->getBody())) { $stripedBody = strip_tags($this->getBody()); - } else { - $stripedBody = ""; } $input_list = array($stripedBody, $this->getAuthor(), $this->getTitle(), $categoriesString); -- cgit v1.2.3