Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/em-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static function get( $args = array(), $count=false ) {
$groupby_sql[] = $events_table.'.post_id, '. $events_table.'.blog_id';
}else{
$selectors = $events_table.'.post_id';
$groupby_sql = [];
$groupby_sql[] = $events_table.'.post_id'; //prevent duplicates showing in lists
}
if( $count ){
Expand Down Expand Up @@ -469,4 +470,4 @@ public static function get_default_search( $array_or_defaults = array(), $array
return apply_filters('em_events_get_default_search', parent::get_default_search($defaults,$array), $array, $defaults);
}
}
?>
?>