From fe5b8b768124e3e6021d2b207dc73389f22ab18e Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Tue, 4 Dec 2018 16:51:40 +1300 Subject: [PATCH] FIX #241 - Minor edits --- src/Search/Variants/SearchVariant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Search/Variants/SearchVariant.php b/src/Search/Variants/SearchVariant.php index 4af5c53..f1b4463 100644 --- a/src/Search/Variants/SearchVariant.php +++ b/src/Search/Variants/SearchVariant.php @@ -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