Correct stripos check

This commit is contained in:
Tony Murray
2016-04-24 07:47:16 -05:00
parent b98ba8c1a4
commit 40759c511f
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);
}
}