mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Fix exception that was getting thrown during OR-group fulltext matching
This commit is contained in:
@@ -331,7 +331,9 @@ abstract class DatabaseQuery extends WireData {
|
|||||||
|
|
||||||
if(!empty($options['inSQL'])) {
|
if(!empty($options['inSQL'])) {
|
||||||
foreach(array_keys($bindValues) as $bindKey) {
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user