Changeset 3668 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 01/07/2011 10:10:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r3635 r3668 553 553 554 554 function bp_core_check_avatar_type($file) { 555 if ( ( strlen($file['file']['type']) && !preg_match('/(jpe?g|gif|png)$/', $file['file']['type'] ) ) &&!preg_match( '/(jpe?g|gif|png)$/', $file['file']['name'] ) )555 if ( ( !empty( $file['file']['type'] ) && !preg_match('/(jpe?g|gif|png)$/', $file['file']['type'] ) ) || !preg_match( '/(jpe?g|gif|png)$/', $file['file']['name'] ) ) 556 556 return false; 557 557
Note: See TracChangeset
for help on using the changeset viewer.