Don't reverse teams in class. Let them be home-away in admin.

This commit is contained in:
Brian Miyaji
2018-10-22 17:43:36 +11:00
parent 795ae271fe
commit 0b86bb1f17

View File

@@ -50,10 +50,6 @@ class SP_Event extends SP_Custom_Post{
// Get results for all teams
$data = sp_array_combine( $teams, $results, true );
if ( 'yes' === get_option( 'sportspress_event_reverse_teams', 'no' ) ) {
$data = array_reverse( $data, true );
}
if ( $admin ):
return array( $columns, $usecolumns, $data );
else:
@@ -472,10 +468,6 @@ class SP_Event extends SP_Custom_Post{
}
}
if ( 'yes' === get_option( 'sportspress_event_reverse_teams', 'no' ) ) {
$output = array_reverse( $output, true );
}
return $output;
}