From 40759c511f5201bbe49172649b1ae912a834a8bc Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sun, 24 Apr 2016 07:47:16 -0500 Subject: [PATCH] Correct stripos check --- html/includes/graphs/application/shoutcast_multi_bits.inc.php | 2 +- html/includes/graphs/application/shoutcast_multi_stats.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/includes/graphs/application/shoutcast_multi_bits.inc.php b/html/includes/graphs/application/shoutcast_multi_bits.inc.php index 1cadfa439e..06f1585109 100644 --- a/html/includes/graphs/application/shoutcast_multi_bits.inc.php +++ b/html/includes/graphs/application/shoutcast_multi_bits.inc.php @@ -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); } } diff --git a/html/includes/graphs/application/shoutcast_multi_stats.inc.php b/html/includes/graphs/application/shoutcast_multi_stats.inc.php index 1af206bb8b..2e2819e84b 100644 --- a/html/includes/graphs/application/shoutcast_multi_stats.inc.php +++ b/html/includes/graphs/application/shoutcast_multi_stats.inc.php @@ -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); } }