mirror of
https://github.com/unraid/webgui.git
synced 2025-12-30 22:20:23 -06:00
Fix: Don't report dynamix.cfg as corrupt if 0 byte file
This commit is contained in:
@@ -24,6 +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;
|
||||
}
|
||||
$flag = 1;
|
||||
sleep(1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user