Skip to content

Commit

Permalink
Fix filtering range.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 7, 2016
1 parent f7f3935 commit f361b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kronolith/lib/Kronolith.php
Expand Up @@ -651,7 +651,7 @@ public static function addSearchEvents(&$events, $event, $query, $json)
} else {
// Don't include any results that are outside the query range.
if ((!empty($query->end) && $event->start->after($query->end)) ||
(!empty($query->start) && $event->start->before($query->start))) {
(!empty($query->start) && $event->end->before($query->start))) {
return;
}
$eventStart = $event->start;
Expand Down

0 comments on commit f361b66

Please sign in to comment.