diff --git a/emhttp/plugins/dynamix/include/Helpers.php b/emhttp/plugins/dynamix/include/Helpers.php index 540190b9f..be1c17b65 100644 --- a/emhttp/plugins/dynamix/include/Helpers.php +++ b/emhttp/plugins/dynamix/include/Helpers.php @@ -464,6 +464,7 @@ function parse_cpu_ranges($file) { if (!is_file($file)) return null; $ranges = file_get_contents($file); $ranges = trim($ranges); + if ($ranges === '') return null; $cores = []; foreach (explode(',', $ranges) as $range) { if (strpos($range, '-') !== false) {