Update emhttp/plugins/dynamix/include/Report.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Squidly271
2025-09-19 13:39:54 -04:00
committed by GitHub
parent c0cc15744e
commit c3240c2beb

View File

@@ -24,8 +24,9 @@ case 'config':
$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);