derhansen / sf_event_mgt

An event management and registration extension for TYPO3 CMS based on ExtBase and Fluid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[TASK] Superfluous query condition in EventRepository.php

h-e-l-l-o-w-o-r-l-d opened this issue · comments

Hi,

this line is superfluous:

(

$query->lessThanOrEqual('startdate', $eventDemand->getCurrentDateTime()),
)

because it must be less or equal if this condition has passed:

$query->greaterThan('startdate', $eventDemand->getCurrentDateTime()),

Greets

Thanks, this seems valid to me. Will add in the upcoming release.