Fix error

This commit is contained in:
Brian Miyaji
2014-01-09 23:39:17 +11:00
parent 080dc44888
commit 9ea5d9b81d

View File

@@ -3,7 +3,7 @@ function sportspress_insert_post_data( $data, $postarr ) {
if( $data['post_type'] == 'sp_event' && $data['post_title'] == '' ):
$teams = (array)$postarr['sp_team'];
$teams = sportspress_array_value( $postarr, 'sp_team', array() );
$team_names = array();
foreach( $teams as $team ):