aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2014-08-10 01:29:59 +0200
committerDhruv Goel <dhruv.goel92@gmail.com>2014-08-10 01:29:59 +0200
commit5c93735557ebca850ecd588745e9ab9295a536b5 (patch)
tree5beb5e3d0fefbfbe61631fbca4b6f22dfe0176b3 /phpBB/phpbb
parentb000d10ef8000bba3a029872a47318a2177e9ab2 (diff)
parent9f873410469882cb202ec8bd4bebc956c163ae91 (diff)
downloadforums-5c93735557ebca850ecd588745e9ab9295a536b5.tar
forums-5c93735557ebca850ecd588745e9ab9295a536b5.tar.gz
forums-5c93735557ebca850ecd588745e9ab9295a536b5.tar.bz2
forums-5c93735557ebca850ecd588745e9ab9295a536b5.tar.xz
forums-5c93735557ebca850ecd588745e9ab9295a536b5.zip
Merge pull request #2851 from marc1706/ticket/12949
[ticket/12949] Check if mime_content_type is actually callable
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/mimetype/content_guesser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/mimetype/content_guesser.php b/phpBB/phpbb/mimetype/content_guesser.php
index 9c83e8dd73..f3ad7f5f41 100644
--- a/phpBB/phpbb/mimetype/content_guesser.php
+++ b/phpBB/phpbb/mimetype/content_guesser.php
@@ -20,7 +20,7 @@ class content_guesser extends guesser_base
*/
public function is_supported()
{
- return function_exists('mime_content_type');
+ return function_exists('mime_content_type') && is_callable('mime_content_type');
}
/**