Fix issue with fetching data in get_pledge_meta when no submission has been POST'd

This commit is contained in:
Kelly Dwan 2019-11-21 16:42:59 -05:00
parent bbe3d1be84
commit c614d63056
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -213,7 +213,7 @@ function get_form_submission() {
$result = filter_input_array( INPUT_POST, $input_filters );
if ( ! $result ) {
return array_fill_keys( array_keys( $input_filters ), '' );
return [];
}
return $result;