From e17d3b029e25ce4383a488e2685bdd4959be3898 Mon Sep 17 00:00:00 2001 From: Quentin VIAL-GOUTEYRON Date: Tue, 1 Feb 2022 12:24:04 +0100 Subject: [PATCH] FIX delete criteria --- htdocs/core/lib/functions.lib.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 5b05a9a2071..fa6d7bee21b 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -9158,10 +9158,6 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0) } else $newres .= $field." LIKE '"; - $tmpcrit = trim($tmpcrit); - $tmpcrit2 = $tmpcrit; - $tmpbefore = '%'; - $tmpafter = '%'; if (preg_match('/^[\^\$]/', $tmpcrit)) { $tmpbefore = ''; $tmpcrit2 = preg_replace('/^[\^\$]/', '', $tmpcrit2);