This commit is contained in:
Squidly271
2023-12-12 18:27:06 -05:00
committed by GitHub
parent 9cb59beef6
commit c8f18dee44

View File

@@ -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]));