]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
some code cleanups
authorBanana <mail@bananas-playground.net>
Sat, 3 Feb 2024 19:13:47 +0000 (20:13 +0100)
committerBanana <mail@bananas-playground.net>
Sat, 3 Feb 2024 19:13:47 +0000 (20:13 +0100)
webclient/lib/managecollections.class.php
webclient/lib/manageentry.class.php

index cd1b7abfdbe9e831be93758c5622d07fdb24b26b..bb120413e76fc4bea9623c1c9e53b74fe1100a39 100644 (file)
@@ -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'];
                 }
             }
index b219fd3862717d16d15e1deae10676873c629aa0..7ab6afa3d0de0a215f203dd2d46c5208b6dc2382 100644 (file)
@@ -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'];
             }
            }