From 6562ad2f2bed53df8eb1285d3f5da9fb20ecc066 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 18 Feb 2013 16:42:32 +1300 Subject: [PATCH] Check for !empty() on includeSubclasses so you don't get an undefined notice --- code/solr/SolrIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/solr/SolrIndex.php b/code/solr/SolrIndex.php index 79a7e23..8a48435 100644 --- a/code/solr/SolrIndex.php +++ b/code/solr/SolrIndex.php @@ -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']; }