FIX #241 - Minor edits

This commit is contained in:
Michal Kleiner 2018-12-04 16:51:40 +13:00
parent ed2c135b38
commit fe5b8b7681
No known key found for this signature in database
GPG Key ID: CFCE9D1A56C919C0

View File

@ -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