Changeset 3669
- Timestamp:
- 01/07/2011 10:14:31 AM (15 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-core/bp-core-avatars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-avatars.php
r3141 r3669 523 523 524 524 function bp_core_check_avatar_type($file) { 525 if ( ( strlen($file['file']['type']) && !preg_match('/(jpe?g|gif|png)$/', $file['file']['type'] ) ) &&!preg_match( '/(jpe?g|gif|png)$/', $file['file']['name'] ) )525 if ( ( !empty( $file['file']['type'] ) && !preg_match('/(jpe?g|gif|png)$/', $file['file']['type'] ) ) || !preg_match( '/(jpe?g|gif|png)$/', $file['file']['name'] ) ) 526 526 return false; 527 527
Note: See TracChangeset
for help on using the changeset viewer.