Merge pull request #3419 from murrant/php7

Correct stripos check
This commit is contained in:
Neil Lathwood
2016-04-24 14:13:15 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ $i = 0;
if ($handle = opendir($rrddir)) {
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..') {
if (stripos($file, 'app-shoutcast-'.$app['app_id'])) {
if (stripos($file, 'app-shoutcast-'.$app['app_id']) != false) {
array_push($files, $file);
}
}

View File

@@ -15,7 +15,7 @@ $x = 0;
if ($handle = opendir($rrddir)) {
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..') {
if (stripos($file, 'app-shoutcast-'.$app['app_id'])) {
if (stripos($file, 'app-shoutcast-'.$app['app_id']) !== false) {
array_push($files, $file);
}
}