aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/photo/photo_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index f9b6e5ea8..e980a96e1 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -598,6 +598,7 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
if($result['success']) {
$img_str = $result['body'];
+ $type = guess_image_type($photo, $result['header']);
$h = explode("\n",$result['header']);
if($h) {
@@ -609,7 +610,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
}
}
}
- $type = guess_image_type($photo, $result['header']);
}
}
else {