Assembla home | Assembla project page
 

Changeset 130

Show
Ignore:
Timestamp:
11/23/06 11:33:02 (2 years ago)
Author:
moensch
Message:

Remove all matches when a tournament is started. This avoids problems when a user clicked the browser "Back" button when he was on the "start tournament matches overview" page.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/com_mls_tournaments/admin.mls_tournaments.php

    r84 r130  
    994994        $t->load( $id ); 
    995995         
     996        /** Delete all matches for this tournament */ 
     997        $database->setQuery( "DELETE FROM `#__mls_tournaments_matches` WHERE `tournamentid`='".$t->id."'" ); 
     998        $database->query(); 
     999        $database->setQuery( "DELETE FROM `#__mls_tournaments_matches_temp` WHERE `tournamentid`='".$t->id."'" ); 
     1000        $database->query(); 
     1001         
    9961002        /** Create the first round with all participants and defwins */ 
    9971003        if(!@$_POST["matches"]) {