mirror of
https://github.com/unraid/webgui.git
synced 2026-01-17 23:20:02 -06:00
PHP8 support
This commit is contained in:
@@ -39,11 +39,11 @@ function maintenance_mode() {
|
||||
global $var, $disk;
|
||||
return ($var['fsState']=="Started" && $var['startMode']=="Maintenance" && $disk['luksState']<=1);
|
||||
}
|
||||
$sheets = []; $n = 0;
|
||||
$sheets = []; $i = $n = 0;
|
||||
foreach ($disks as $sheet) {
|
||||
if ((isset($sheet['type']) && $sheet['type']=='Flash') || (isset($sheet['color']) && $sheet['color']=='grey-off')) continue;
|
||||
$sheets[] = $sheet['name'];
|
||||
if ($sheet['name']==$name) { $i = $n; }
|
||||
if ($sheet['name']==$name) {$i = $n;}
|
||||
$n++;
|
||||
}
|
||||
$tag = $disk['name'];
|
||||
|
||||
Reference in New Issue
Block a user