mcmahon Done

This commit is contained in:
2026-05-06 23:38:01 +02:00
parent 805a2fa265
commit 039448f1e3
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ fwrite($output, $mcmahonfirst);
foreach ($entries as $i => $e) {
$rank = $ranks[$e->rank];
$id = $e->i + 1;
$egd = $e->egd_number ? $e->egd_number : '0';
$egd = (strlen($e->egd_number) == 0) ? '0' : $e->egd_number;
$out = " <IndividualParticipant typeversion=\"1\">
<Id>$id</Id>
<Joker>false</Joker>
@@ -36,7 +36,7 @@ foreach ($entries as $i => $e) {
<Surname><![CDATA[$e->last_name]]></Surname>
<GoLevel>$rank</GoLevel>
<Rating>$e->rating</Rating>
<EgdPin>$e->egd_number</EgdPin>
<EgdPin>$egd</EgdPin>
<Country>$e->country</Country>
<Club>$e->club</Club>
</GoPlayer>

View File

@@ -253,6 +253,7 @@ add_action('admin_post_go_form_export_opengotha', 'go_form_export_opengotha');
function go_form_export_mcmahon()
{
global $ranks;
include_once 'export/mcmahon.php';
exit;
}