From c0cc15744eb88cce04bc3e4b28b39fdeb9c9693d Mon Sep 17 00:00:00 2001 From: Squidly271 <11369569+Squidly271@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:04:47 -0400 Subject: [PATCH 1/2] Fix: Don't report dynamix.cfg as corrupt if 0 byte file --- emhttp/plugins/dynamix/include/Report.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emhttp/plugins/dynamix/include/Report.php b/emhttp/plugins/dynamix/include/Report.php index 867a547ea8..80e15df8cc 100644 --- a/emhttp/plugins/dynamix/include/Report.php +++ b/emhttp/plugins/dynamix/include/Report.php @@ -24,6 +24,9 @@ $filename = $plugin ? "$config/plugins/$name/$name.cfg" : "$config/$name.cfg"; for ( $i=0;$i<2;$i++) { if (($need && !file_exists($filename)) || (file_exists($filename) && !@parse_ini_file($filename))) { + if ( ! $need && $plugin && @filesize($filename) == 0) { + continue; + } $flag = 1; sleep(1); } else { From c3240c2beb4d703bdb8aba45a85daaa5d69a352c Mon Sep 17 00:00:00 2001 From: Squidly271 <11369569+Squidly271@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:39:54 -0400 Subject: [PATCH 2/2] Update emhttp/plugins/dynamix/include/Report.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- emhttp/plugins/dynamix/include/Report.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/Report.php b/emhttp/plugins/dynamix/include/Report.php index 80e15df8cc..96c4578bb6 100644 --- a/emhttp/plugins/dynamix/include/Report.php +++ b/emhttp/plugins/dynamix/include/Report.php @@ -24,8 +24,9 @@ $filename = $plugin ? "$config/plugins/$name/$name.cfg" : "$config/$name.cfg"; for ( $i=0;$i<2;$i++) { if (($need && !file_exists($filename)) || (file_exists($filename) && !@parse_ini_file($filename))) { - if ( ! $need && $plugin && @filesize($filename) == 0) { - continue; + if ( ! $need && $plugin && @filesize($filename) === 0) { + $flag = 0; + break; } $flag = 1; sleep(1);