summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-08-29 15:34:24 +0000
committerthomascube <thomas@roundcube.net>2008-08-29 15:34:24 +0000
commit35dc0bed74eb820b8d495d0fc039177d284cb5eb (patch)
treedd5009309f84c7678e3402bd565c557c2e12c406 /program
parentdf0dd4f4bae69ff1eda30665f5e35929ff229645 (diff)
Little improvement in mime-detection as suggested in #1485296
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_shared.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 000483ef8..d82b1fef0 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -569,7 +569,7 @@ function rc_mime_content_type($path, $failover = 'unknown/unknown')
finfo_close($finfo);
}
}
- else if (function_exists('mime_content_type')) {
+ if (!$mime_type && function_exists('mime_content_type')) {
$mime_type = mime_content_type($path);
}