mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Merge pull request #221 from Deutscher-Tischfussballbund/sportsmanager2-issue218
MonsterDYP imports throw error
This commit is contained in:
@@ -11950,6 +11950,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
if ($matchingNodes->length != 1) {
|
||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
||||
}
|
||||
$turniersystemVorrunde = $matchingNodes->item(0)->getAttribute("system");
|
||||
}
|
||||
|
||||
if ($disziplinZusatzrunde != null) {
|
||||
@@ -11960,6 +11961,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
if ($matchingNodes->length != 1) {
|
||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
||||
}
|
||||
$turniersystemZusatzrunde = $matchingNodes->item(0)->getAttribute("system");
|
||||
}
|
||||
|
||||
if ($disziplinZusatzrunde2 != null) {
|
||||
@@ -11970,6 +11972,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
if ($matchingNodes->length != 1) {
|
||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
||||
}
|
||||
$turniersystemZusatzrunde2 = $matchingNodes->item(0)->getAttribute("system");
|
||||
}
|
||||
|
||||
$matchingNodes = $disziplin->getElementsByTagName("disziplin");
|
||||
@@ -11979,6 +11982,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
if ($matchingNodes->length != 1) {
|
||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Die uebergebene Datei darf nur eine Disziplin enthalten.");
|
||||
}
|
||||
$turniersystemHauptrunde = $matchingNodes->item(0)->getAttribute("system");
|
||||
|
||||
// Spieler-Ids über Spielerliste ermitteln
|
||||
$meldungenSpieler = array();
|
||||
@@ -12259,7 +12263,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
|
||||
// Spiele speichern
|
||||
$totalVorrunde = 0;
|
||||
if ($disziplinVorrunde != null) {
|
||||
if ($disziplinVorrunde != null && $turniersystemVorrunde != "Monster-DYP") {
|
||||
$matchingNodes = $disziplinVorrunde->getElementsByTagName("runde");
|
||||
if ($matchingNodes != null) {
|
||||
$totalVorrunde = $matchingNodes->length;
|
||||
@@ -12334,7 +12338,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
}
|
||||
|
||||
// Spiele speichern
|
||||
if ($disziplinZusatzrunde != null) {
|
||||
if ($disziplinZusatzrunde != null && $turniersystemZusatzrunde != "Monster-DYP") {
|
||||
$matchingNodes = $disziplinZusatzrunde->getElementsByTagName("runde");
|
||||
if ($matchingNodes != null) {
|
||||
$totalZusatzrunde = $matchingNodes->length;
|
||||
@@ -12408,7 +12412,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
}
|
||||
|
||||
// Spiele speichern
|
||||
if ($disziplinZusatzrunde2 != null) {
|
||||
if ($disziplinZusatzrunde2 != null && $turniersystemZusatzrunde2 != "Monster-DYP") {
|
||||
$matchingNodes = $disziplinZusatzrunde2->getElementsByTagName("runde");
|
||||
if ($matchingNodes != null) {
|
||||
$totalZusatzrunde2 = $matchingNodes->length;
|
||||
@@ -12481,6 +12485,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
}
|
||||
}
|
||||
|
||||
if ($turniersystemHauptrunde != "Monster-DYP") {
|
||||
$matchingNodes = $disziplin->getElementsByTagName("runde");
|
||||
if ($matchingNodes != null) {
|
||||
$total = $matchingNodes->length;
|
||||
@@ -12554,6 +12559,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (array(1, 2, 3, 10) as $rundenstufe) {
|
||||
$query = "SELECT runde, COUNT(*) AS spiele"
|
||||
|
||||
Reference in New Issue
Block a user