Index: trunk/extensions/Contest/specials/SpecialEditContest.php |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | $fields['id'] = $contest === false ? null : $contest->getField( 'id' ); |
284 | 284 | } |
285 | 285 | |
286 | | - $contest = new Contest( $fields, true ); |
| 286 | + $contest = new Contest( $fields, is_null( $fields['id'] ) ); |
287 | 287 | |
288 | 288 | $contest->setChallenges( $this->getSubmittedChallenges() ); |
289 | 289 | $success = $contest->writeAllToDB(); |