mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Correct stripos check
This commit is contained in:
@@ -27,7 +27,7 @@ $i = 0;
|
|||||||
if ($handle = opendir($rrddir)) {
|
if ($handle = opendir($rrddir)) {
|
||||||
while (false !== ($file = readdir($handle))) {
|
while (false !== ($file = readdir($handle))) {
|
||||||
if ($file != '.' && $file != '..') {
|
if ($file != '.' && $file != '..') {
|
||||||
if (stripos($file, 'app-shoutcast-'.$app['app_id'])) {
|
if (stripos($file, 'app-shoutcast-'.$app['app_id']) != false) {
|
||||||
array_push($files, $file);
|
array_push($files, $file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -15,7 +15,7 @@ $x = 0;
|
|||||||
if ($handle = opendir($rrddir)) {
|
if ($handle = opendir($rrddir)) {
|
||||||
while (false !== ($file = readdir($handle))) {
|
while (false !== ($file = readdir($handle))) {
|
||||||
if ($file != '.' && $file != '..') {
|
if ($file != '.' && $file != '..') {
|
||||||
if (stripos($file, 'app-shoutcast-'.$app['app_id'])) {
|
if (stripos($file, 'app-shoutcast-'.$app['app_id']) !== false) {
|
||||||
array_push($files, $file);
|
array_push($files, $file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user