mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Correct stripos check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user