- Timestamp:
- 10/06/08 18:23:19 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
racing.league/files/lib/form/RacingLeagueRacesForm.class.php
r656 r680 16 16 public $templateName = 'racingLeagueRaces'; 17 17 public $saisonID = 0; 18 public $new = 0;18 public $newRaces = 0; 19 19 public $edit = 0; 20 20 public $race = ''; … … 34 34 parent::readParameters(); 35 35 36 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]);37 if (isset($_REQUEST["new "])) $this->new = intval($_REQUEST["new"]);36 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]); 37 if (isset($_REQUEST["newRaces"])) $this->newRaces = intval($_REQUEST["newRaces"]); 38 38 if (isset($_REQUEST["edit"])) $this->edit = intval($_REQUEST["edit"]); 39 39 if (isset($_REQUEST["raceID"])) $this->raceID = intval($_REQUEST["raceID"]); … … 56 56 parent::validate(); 57 57 58 // race bei NEW59 if ($this->new == 1) {58 // race bei newRaces 59 if ($this->newRaces == 1) { 60 60 if (empty($this->race)) { 61 $this->new = '1';61 $this->newRaces = '1'; 62 62 throw new UserInputException('race'); 63 63 } … … 84 84 85 85 // Hier wird die Anzahl der vorhandenen Renntage ermittelt 86 if ($this->new == 1) {86 if ($this->newRaces == 1) { 87 87 88 88 $sql = "SELECT * … … 141 141 142 142 // Hier wird ein neuer Renntag gespeichert 143 if ($this->race && $this->activeSaisonID != 0 && $this->new == 1) {143 if ($this->race && $this->activeSaisonID != 0 && $this->newRaces == 1) { 144 144 145 145 $sql = "INSERT INTO wcf".WCF_N."_racing_races (saisonID, raceID, raceNo, racename) … … 150 150 $row = 0; 151 151 $row = WCF::getDB()->getAffectedRows($res); 152 $this->new = 0;152 $this->newRaces = 0; 153 153 if ($row > 0) { 154 154 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); … … 191 191 WCF::getTPL()->assign(array( 192 192 'saisonID' => $this->saisonID, 193 'new ' => $this->new,193 'newRaces' => $this->newRaces, 194 194 'edit' => $this->edit, 195 195 'race' => $this->race,
