Commit 9379200a authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(fai) Avoid sonar warning

issue #5821
parent 3bb554a1
...@@ -132,9 +132,7 @@ class DiskPartitionsAttribute extends DialogOrderedArrayAttribute ...@@ -132,9 +132,7 @@ class DiskPartitionsAttribute extends DialogOrderedArrayAttribute
} }
} elseif ($disk['FAIdiskType'] == 'cryptsetup') { } elseif ($disk['FAIdiskType'] == 'cryptsetup') {
foreach ($disk['partitions'] as $part) { foreach ($disk['partitions'] as $part) {
foreach (explode(',', $part['FAIpartitionSize']) as $partname) { $list[$part['FAIpartitionSize']][] = $disk;
$list[preg_replace('/:.*$/', '', $partname)][] = $disk;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment