Merge pull request #4536 from om4james/issue-4535

Fix for #4535 (PHP Warning)
This commit is contained in:
Mike Jolley 2014-01-20 04:10:08 -08:00
commit 1c5ef68422
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class WC_Product {
// Set default name
if ( empty( $file['name'] ) ) {
$downloadable_files[ $key ]['name'] = wc_get_filename_from_url( $file );
$downloadable_files[ $key ]['name'] = wc_get_filename_from_url( $file['file'] );
}
// Filter URL