From db4a693a43bc09e8fea5a9a17d15c73e8bd23c3a Mon Sep 17 00:00:00 2001 From: Banana Date: Sat, 3 Feb 2024 20:13:47 +0100 Subject: [PATCH] some code cleanups --- webclient/lib/managecollections.class.php | 2 +- webclient/lib/manageentry.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webclient/lib/managecollections.class.php b/webclient/lib/managecollections.class.php index cd1b7ab..bb12041 100644 --- a/webclient/lib/managecollections.class.php +++ b/webclient/lib/managecollections.class.php @@ -461,7 +461,7 @@ class ManageCollections { $_fieldAvailable = true; continue; } - if(isset($v['searchtype']) && strpos($v['searchtype'],'Text') !== false) { + if(isset($v['searchtype']) && str_contains($v['searchtype'], 'Text')) { $dataFields[$k] = $v['identifier']; } } diff --git a/webclient/lib/manageentry.class.php b/webclient/lib/manageentry.class.php index b219fd3..7ab6afa 100644 --- a/webclient/lib/manageentry.class.php +++ b/webclient/lib/manageentry.class.php @@ -629,7 +629,7 @@ class Manageentry { private function _saveField_hidden__combSearch(array $data, array $queryData, array $allInputData): array { $searchData = ''; foreach($allInputData as $f=>$_d) { - if(isset($_d['searchtype']) && strpos($_d['searchtype'],'Text') !== false) { + if(isset($_d['searchtype']) && str_contains($_d['searchtype'], 'Text')) { $searchData .= " ".$_d['valueToSave']; } } -- 2.39.5