diff --git a/src/Controllers/SearchController.php b/src/Controllers/SearchController.php index 6d0b4e8c..1cff1ec9 100644 --- a/src/Controllers/SearchController.php +++ b/src/Controllers/SearchController.php @@ -89,9 +89,7 @@ protected function appendDateTimeCriteria(array &$data, string $fieldName): arra protected function processCriteria($data, string $prefix = ""): mixed { if (!empty($data[$prefix . "nodeName"])) { - if (isset($data[$prefix . "nodeName_exact"]) && $data[$prefix . "nodeName_exact"] === true) { - $data[$prefix . "nodeName"] = $data[$prefix . "nodeName"]; - } else { + if (!isset($data[$prefix . "nodeName_exact"]) || $data[$prefix . "nodeName_exact"] !== true) { $data[$prefix . "nodeName"] = ["LIKE", "%" . $data[$prefix . "nodeName"] . "%"]; } }