mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 16:40:21 -06:00
PHP8 Fix
This commit is contained in:
@@ -59,7 +59,7 @@ function postToXML($post, $setOwnership=false) {
|
||||
$xml->DonateLink = xml_encode($post['contDonateLink']);
|
||||
$xml->Requires = xml_encode($post['contRequires']);
|
||||
|
||||
$size = is_array($post['confName']) ? count($post['confName']) : 0;
|
||||
$size = is_array($post['confName']??null) ? count($post['confName']) : 0;
|
||||
for ($i = 0; $i < $size; $i++) {
|
||||
$Type = $post['confType'][$i];
|
||||
$config = $xml->addChild('Config', xml_encode($post['confValue'][$i]));
|
||||
|
||||
Reference in New Issue
Block a user