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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user