Skip to content

Commit 3c4ec95

Browse files
author
Timo Schmidt
committed
[BUGFIX] Fix incorrect count call
This pr: * Fixes an incorrect count call in the GroupedResultParser that produced a warning Fixes: #2
1 parent a855302 commit 3c4ec95

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Build/Test/UnitTests.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
backupGlobals="false"
33
backupStaticAttributes="false"
44
colors="true"
5-
convertErrorsToExceptions="false"
6-
convertWarningsToExceptions="false"
5+
convertErrorsToExceptions="true"
6+
convertWarningsToExceptions="true"
77
forceCoversAnnotation="false"
88
processIsolation="false"
99
stopOnError="false"

Classes/Domain/Search/ResultSet/Grouping/Parser/GroupedResultParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ public function canParse(SearchResultSet $resultSet): bool
273273
$configuration = $resultSet->getUsedSearchRequest()->getContextTypoScriptConfiguration();
274274
$groupsConfiguration = $configuration->getSearchGroupingGroupsConfiguration();
275275
$groupingEnabled = $configuration->getSearchGrouping();
276-
277-
return $groupingEnabled && count($groupsConfiguration > 0);
276+
return $groupingEnabled && (count($groupsConfiguration) > 0);
278277
}
279278

280279
/**

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$EM_CONF[$_EXTKEY] = array(
33
'title' => 'Apache Solr for TYPO3 - Grouping for fluid rendering',
44
'description' => 'This addon provides the grouping for the fluid templating',
5-
'version' => '1.0.0-dev',
5+
'version' => '1.1.0-dev',
66
'state' => 'stable',
77
'category' => 'plugin',
88
'author' => 'Timo Hund, Frans Saris',

0 commit comments

Comments
 (0)