mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
'str(i)str(...)' could be replaced with 'str(i)pos(...)'.
This commit is contained in:
parent
1f44ed29aa
commit
2210705486
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ function attachment_sync_topic($topics)
|
||||||
*/
|
*/
|
||||||
function get_extension($filename)
|
function get_extension($filename)
|
||||||
{
|
{
|
||||||
if (false === strstr($filename, '.')) {
|
if (false === strpos($filename, '.')) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$extension = strrchr(strtolower($filename), '.');
|
$extension = strrchr(strtolower($filename), '.');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue