1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/10944] strpos now stricter and removed superfluous ternary

PHPBB3-10944
This commit is contained in:
Fyorl 2012-07-17 17:39:19 +01:00
parent 6aea4db6c7
commit e71474abb5

View File

@ -151,7 +151,7 @@ class filespec
*/
function is_image()
{
return (strpos($this->mimetype, 'image/') !== false) ? true : false;
return (strpos($this->mimetype, 'image/') === 0);
}
/**