diff --git a/imagecache_profiles.module b/imagecache_profiles.module
index 78e41f2..919215d 100644
--- a/imagecache_profiles.module
+++ b/imagecache_profiles.module
@@ -126,7 +126,7 @@ function imagecache_profiles_form_user_admin_settings_alter(&$form, $form_state)
  * Implements hook_file_validate().
  */
 function imagecache_profiles_file_validate($file) {
-  if ($file->source == 'picture_upload') {
+  if (!empty($file->source) && $file->source == 'picture_upload') {
     $width = variable_get('user_picture_imagecache_profiles_min_width', 0);
     $height = variable_get('user_picture_imagecache_profiles_min_height', 0);
     $minimum_dimensions = $width . 'x' . $height;
