Fix inline editing error in PHP 7.1

This commit is contained in:
Brian Miyaji
2017-11-05 20:44:56 +11:00
parent 8ecf92a4df
commit ac7457323a

View File

@@ -550,7 +550,7 @@ class SP_Event extends SP_Custom_Post{
}
// Get current results meta
$meta = get_post_meta( $this->ID, 'sp_results', true );
$meta =(array) get_post_meta( $this->ID, 'sp_results', true );
$primary_results = array();
foreach ( $results as $id => $result ) {