summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index db3385e77..951799bfa 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -927,8 +927,8 @@ sub attachment_process_data {
$url = $data;
}
- if (my $content_type = _detect_attached_url($url)->{content_type}) {
- $attributes->{mimetype} = $content_type;
+ if (my $detected = _detect_attached_url($url)) {
+ $attributes->{mimetype} = $detected->{content_type};
$attributes->{ispatch} = 0;
}
}