'str(i)str(...)' could be replaced with 'str(i)pos(...)'.

This commit is contained in:
Yuriy Pikhtarev 2017-05-09 22:53:53 +03:00
commit 2210705486
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6

View file

@ -410,7 +410,7 @@ function attachment_sync_topic($topics)
*/
function get_extension($filename)
{
if (false === strstr($filename, '.')) {
if (false === strpos($filename, '.')) {
return '';
}
$extension = strrchr(strtolower($filename), '.');