1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 16:54:44 +02:00
This commit is contained in:
Ryan Cramer
2022-04-22 10:36:03 -04:00
parent 6fcd7a7038
commit 7159279ac8
2 changed files with 2 additions and 2 deletions

View File

@@ -1046,7 +1046,7 @@ class DatabaseQuerySelectFulltext extends Wire {
}
}
if(strlen($lastWord)) {
if(strlen("$lastWord")) {
// only last word allowed to be a partial match word
$lastRequired = isset($stopWords[$lastWord]) || isset($shortWords[$lastWord]) ? '' : $required;
$booleanValues[$lastWord] = $lastRequired . $lastWord . '*';

View File

@@ -206,7 +206,7 @@ class Selectors extends WireArray {
$not = false;
if(!isset(self::$selectorTypes[$operator])) {
// unrecognized operator, see if it's an alternate placement for NOT "!" statement
$op = ltrim($operator, '!');
$op = ltrim("$operator", '!');
if(isset(self::$selectorTypes[$op])) {
$operator = $op;
$not = true;