possibly better fox for profil photo image type issue

This commit is contained in:
Mario Vavti 2015-10-29 11:29:11 +01:00
parent bb469deb85
commit 0a9b2b6b15

View File

@ -593,11 +593,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
if($photo) {
$filename = basename($photo);
$type = guess_image_type($photo);
if(! $type)
$type = 'image/jpeg';
$result = z_fetch_url($photo,true);
@ -614,6 +609,7 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
}
}
}
$type = guess_image_type($photo, $result['header']);
}
}
else {