Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Add check for url
Browse files Browse the repository at this point in the history
  • Loading branch information
ravewebdev committed Sep 27, 2021
1 parent 14f20ff commit a8e5bf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function( $field ) use ( &$file_uploads, $form_id ) {
$upload = handle_file_upload( $file, $target );

// If error occurs, skip field.
if ( ! $upload ) {
if ( ! $upload || ! $upload['url'] ) {
$field['value'] = '';

return $field;
Expand Down

0 comments on commit a8e5bf6

Please sign in to comment.