mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12949] Check if mime_content_type is actually callable
PHPBB3-12949
This commit is contained in:
parent
56ca276dcf
commit
9f87341046
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class content_guesser extends guesser_base
|
||||||
*/
|
*/
|
||||||
public function is_supported()
|
public function is_supported()
|
||||||
{
|
{
|
||||||
return function_exists('mime_content_type');
|
return function_exists('mime_content_type') && is_callable('mime_content_type');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue