mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Check for !empty() on includeSubclasses so you don't get an undefined notice
This commit is contained in:
parent
224844fd44
commit
6562ad2f2b
@ -348,7 +348,7 @@ abstract class SolrIndex extends SearchIndex {
|
||||
$classq = array();
|
||||
|
||||
foreach ($query->classes as $class) {
|
||||
if ($class['includeSubclasses']) $classq[] = 'ClassHierarchy:'.$class['class'];
|
||||
if (!empty($class['includeSubclasses'])) $classq[] = 'ClassHierarchy:'.$class['class'];
|
||||
else $classq[] = 'ClassName:'.$class['class'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user