Show
Ignore:
Timestamp:
09/25/08 19:02:38 (5 years ago)
Author:
MDMAN
Message:

racing.league modified

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • racing.league/files/lib/form/RacingLeagueUserToTeamForm.class.php

    r652 r660  
    44 
    55/** 
    6  * Seite fÃŒr die Zuweisung der User an ein Team. 
     6 * Seite fÃŒr die Zuweisung der Fahrer an ein Team. 
    77 *  
    88 * @author      Markus Gerdelmann 
     
    6666                parent::readData(); 
    6767 
    68                 if ($this->newUser == 1 && $this->userID > 0 && $this->activSaisonID > 0) { 
    69                         // Hier wird der Username geladen fÃŒr die Teamzuweisung 
     68                if ($this->newUser == 1 && $this->userID > 0 && $this->activeSaisonID > 0) { 
     69                        // Hier wird der Username geladen fÌr die Teamzuweisung 
    7070                        $sql = "SELECT userID, username  
    7171                                        FROM wcf".WCF_N."_user 
     
    7878                } 
    7979 
    80                 if ($this->activSaisonID > 0) { 
     80                if ($this->activeSaisonID > 0) { 
    8181         
    8282                        // Hier wird die aktive Benutzergruppe ermittelt 
    8383                        $sql = "SELECT * 
    8484                                        FROM wcf".WCF_N."_racing_group 
    85                                         WHERE saisonID = '".$this->activSaisonID."' 
     85                                        WHERE saisonID = '".$this->activeSaisonID."' 
    8686                                        "; 
    8787                        $res = WCF::getDB()->sendQuery($sql); 
     
    109109                                                WHERE   `a`.`userID` = `c`.`userID` 
    110110                                                AND             `b`.`groupID` = '".$this->groupID."' 
    111                                                 AND             `b`.saisonID = '".$this->activSaisonID."' 
    112                                                 AND             `c`.saisonID = '".$this->activSaisonID."' 
     111                                                AND             `b`.saisonID = '".$this->activeSaisonID."' 
     112                                                AND             `c`.saisonID = '".$this->activeSaisonID."' 
    113113                                                ORDER BY `a`.`username` ASC"; 
    114114 
     
    126126                                                ON              (`b`.`groupID` = '".$this->groupID."') 
    127127                                                WHERE `a`.`groupID` = `b`.`groupID` 
    128                                                 AND `b`.`saisonID` = '".$this->activSaisonID."' 
     128                                                AND `b`.`saisonID` = '".$this->activeSaisonID."' 
    129129                                                "; 
    130130 
     
    172172 
    173173                // Hier wird einem Fahrer ein Team zugewiesen und gespeichert 
    174                 if ($this->newUser == 1 && $this->userID > 0 && $this->activSaisonID > 0) { 
     174                if ($this->newUser == 1 && $this->userID > 0 && $this->activeSaisonID > 0) { 
    175175 
    176176                        $sql = "INSERT INTO wcf".WCF_N."_racing_user_to_team 
    177177                                        (saisonID, usertoteamID ,teamID, userID)  
    178                                         VALUES ('".escapeString($this->activSaisonID)."', '', '".escapeString($this->team)."', '".escapeString($this->userID)."') 
     178                                        VALUES ('".escapeString($this->activeSaisonID)."', '', '".escapeString($this->team)."', '".escapeString($this->userID)."') 
    179179                                        "; 
    180180