From 713ab0fa776f07cb65240e5f09cf4cfa7f0b6304 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Sat, 6 Aug 2022 16:43:35 +0200 Subject: Update lib/Db/Item.php Co-authored-by: Sean Molenaar Signed-off-by: Benjamin Brahmer --- lib/Db/Item.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Db/Item.php b/lib/Db/Item.php index c1366bb8c..8c46a4973 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -181,9 +181,7 @@ class Item extends Entity implements IAPI, \JsonSerializable $search_string = ""; foreach ($input_list as $value) { - if (is_null($value)) { - $search_string .= ""; - } else { + if (!is_null($value)) { $search_string .= html_entity_decode($value); } } -- cgit v1.2.3