mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
FIX #241 - Minor edits
This commit is contained in:
parent
ed2c135b38
commit
fe5b8b7681
@ -187,8 +187,8 @@ abstract class SearchVariant
|
||||
$commonVariants = [];
|
||||
foreach ($classes as $class => $options) {
|
||||
// BC for numerically indexed list of classes
|
||||
if (is_numeric($class) && isset($options['class'])) {
|
||||
$class = $options['class'];
|
||||
if (is_numeric($class) && !empty($options['class'])) {
|
||||
$class = $options['class']; // $options['class'] is assumed to exist throughout the code base
|
||||
}
|
||||
|
||||
// Extract relevant class options
|
||||
|
Loading…
Reference in New Issue
Block a user