mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10944] strpos now stricter and removed superfluous ternary
PHPBB3-10944
This commit is contained in:
parent
6aea4db6c7
commit
e71474abb5
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class filespec
|
||||||
*/
|
*/
|
||||||
function is_image()
|
function is_image()
|
||||||
{
|
{
|
||||||
return (strpos($this->mimetype, 'image/') !== false) ? true : false;
|
return (strpos($this->mimetype, 'image/') === 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue