From 5f25f1e406911d81916b72246be7e824fb785f59 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sat, 2 Aug 2025 07:44:09 +0100 Subject: [PATCH] Fix p-cores --- emhttp/plugins/dynamix/include/Helpers.php | 1 + 1 file changed, 1 insertion(+) 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) {