1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Fix exception that was getting thrown during OR-group fulltext matching

This commit is contained in:
Ryan Cramer
2020-05-22 14:49:13 -04:00
parent 4d4dde64eb
commit c0a867f9df

View File

@@ -331,7 +331,9 @@ abstract class DatabaseQuery extends WireData {
if(!empty($options['inSQL'])) {
foreach(array_keys($bindValues) as $bindKey) {
if(strpos($options['inSQL'], $bindKey) === false) unset($bindValues[$bindKey]);
if(!preg_match('/' . $bindKey . '\b/', $options['inSQL'])) {
unset($bindValues[$bindKey]);
}
}
}