Modularize!

This commit is contained in:
Brian Miyaji
2015-01-28 14:02:35 +11:00
parent aa0eeae6cd
commit 87baaf7288
35 changed files with 1491 additions and 928 deletions

View File

@@ -106,13 +106,6 @@ class SP_Event extends SP_Custom_Post{
endif;
endforeach;
endif;
// Move individual players to top level of array
if ( array_key_exists( 0, $performance ) && is_array( $performance[0] ) ) {
foreach ( $performance[ 0 ] as $player_id => $player_performance ) {
$performance[ $player_id ] = array( $player_id => $player_performance );
}
}
$performance[0] = $labels;
return $performance;
endif;