diff options
| author | Fyorl <gaelreth@gmail.com> | 2012-07-17 17:39:19 +0100 |
|---|---|---|
| committer | Fyorl <gaelreth@gmail.com> | 2012-07-17 17:39:19 +0100 |
| commit | e71474abb5e90d0aeee61d7d9a2d4648aed61426 (patch) | |
| tree | 3003fb5a0eaee1b83e4d981a098f7f1c7395be82 /phpBB/includes | |
| parent | 6aea4db6c7adbcee4fffa7cbc39564481fa6e211 (diff) | |
| download | forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar.gz forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar.bz2 forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar.xz forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.zip | |
[ticket/10944] strpos now stricter and removed superfluous ternary
PHPBB3-10944
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions_upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index f70e20e616..d4c6b42cf4 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -151,7 +151,7 @@ class filespec */ function is_image() { - return (strpos($this->mimetype, 'image/') !== false) ? true : false; + return (strpos($this->mimetype, 'image/') === 0); } /** |
