This commit is contained in:
Jürgen Meyer
2025-08-29 12:00:08 +02:00
parent 3aa20036dc
commit 17a9bfdd2e
@@ -9851,9 +9851,8 @@ class HTML_sportsmanager_admin
name="team_id_<?php echo $teamnr; ?>" size="1"
aria-label="<?php echo Text::_('COM_SPORTSMANAGER_ARIA_LABEL_PAIRING_TEAM'); ?>">
<?php
echo "<option value=\"".$rows[$teamnr-1]->team_id."\">".$rows[$teamnr-1]->teamname."</option>";
foreach ($rows as $team)
echo "<option value=\"" . $team->team_id . "\">" . htmlentities_utf8($team->teamname) . "</option>";
echo "<option value=\"" . $team->team_id . "\" ". ($rows[$teamnr - 1]->team_id == $team->team_id ? " selected" : "") . ">" . htmlentities_utf8($team->teamname) . "</option>";
?>
</select>
<?php
@@ -9863,9 +9862,8 @@ class HTML_sportsmanager_admin
name="team_id_<?php echo $teamnr + 1; ?>" size="1"
aria-label="<?php echo Text::_('COM_SPORTSMANAGER_ARIA_LABEL_PAIRING_TEAM'); ?>">
<?php
echo "<option value=\"".$rows[$teamnr]->team_id."\">".$rows[$teamnr]->teamname."</option>";
foreach ($rows as $team)
echo "<option value=\"" . $team->team_id . "\">" . htmlentities_utf8($team->teamname) . "</option>";
echo "<option value=\"" . $team->team_id . "\" ". ($rows[$teamnr]->team_id == $team->team_id ? " selected" : "") . ">" . htmlentities_utf8($team->teamname) . "</option>";
?>
</select>
<?php