From ca63ee11a7485b29d74e208fb7188cc9fb99a87c Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 28 Apr 2018 21:24:25 +1000 Subject: [PATCH] Force array type to prevent parameter error --- modules/sportspress-player-assignments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sportspress-player-assignments.php b/modules/sportspress-player-assignments.php index 8c39caca..da0b061d 100644 --- a/modules/sportspress-player-assignments.php +++ b/modules/sportspress-player-assignments.php @@ -46,7 +46,7 @@ class SportsPress_Player_Assignments { * Save Additional Statistics */ public function save_additional_statistics( $post_id, $post_data ) { - $old = get_post_custom_values( 'sp_player_assignments', $post_id ); + $old = (array) get_post_custom_values( 'sp_player_assignments', $post_id ); $leagues = $post_data['sp_leagues']; $transfers = get_post_meta($post_id, 'sp_player_assignments', true);