summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-08-06 16:43:52 +0200
committerGitHub <noreply@github.com>2022-08-06 16:43:52 +0200
commit41ea5aa2943371cfb351da388ca9d574302451e8 (patch)
treee29853ebbff66c61b103c3d10524af5e12e3e852
parent713ab0fa776f07cb65240e5f09cf4cfa7f0b6304 (diff)
Update lib/Db/Item.phpfix/php8.1_depreciation
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--lib/Db/Item.php3
1 files changed, 1 insertions, 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);