1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-23 06:44:38 +02:00

Various minor updates. Plus add a $database->isStopword() method and improve error logging in WireDatabasePDOStatement

This commit is contained in:
Ryan Cramer
2020-06-19 12:35:21 -04:00
parent 32e031ab7d
commit d79d9286b1
10 changed files with 115 additions and 20 deletions

View File

@@ -913,8 +913,8 @@ class FieldtypeFile extends FieldtypeMulti implements ConfigurableModule {
} else if($operator === '!=' && ctype_alnum("$value")) {
$operator = '!~='; // ok
} else if($operator === '~=' || $operator === '!~=' || $operator === '%=' || $operator === '*=') {
// ok
} else if(Selectors::getSelectorByOperator($operator, 'compareType') & Selector::compareTypeFind) {
// ok, text finding operators
} else {
throw new PageFinderSyntaxException("Operator $operator is not supported by $this in selector: $selector");