- Timestamp:
- 03/28/2020 09:21:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment-cover-image.php
r12588 r12602 79 79 80 80 // File size is too big. 81 if ( $file['size'] > $this->original_max_filesize) {81 if ( isset( $file['size'] ) && ( $file['size'] > $this->original_max_filesize ) ) { 82 82 $file['error'] = 11; 83 83 84 84 // File is of invalid type. 85 } elseif ( ! bp_attachments_check_filetype( $file['tmp_name'], $file['name'], bp_attachments_get_allowed_mimes( 'cover_image' ) ) ) {85 } elseif ( isset( $file['tmp_name'] ) && isset( $file['name'] ) && ! bp_attachments_check_filetype( $file['tmp_name'], $file['name'], bp_attachments_get_allowed_mimes( 'cover_image' ) ) ) { 86 86 $file['error'] = 12; 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.