mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Replaced strpos() with simplified realization (#1172)
This commit is contained in:
parent
bb20d523b0
commit
493cd910cf
13 changed files with 24 additions and 24 deletions
|
@ -41,7 +41,7 @@ switch ($mode) {
|
|||
$dir = $template->cachedir;
|
||||
$res = @opendir($dir);
|
||||
while (($file = readdir($res)) !== false) {
|
||||
if (0 === strpos($file, $match)) {
|
||||
if (str_starts_with($file, $match)) {
|
||||
@unlink($dir . $file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue