@ -41,7 +41,7 @@ function runScheduledTournaments() {
$day_of_month = date('j');
$sql = 'SELECT id FROM tournament_types WHERE (day_of_week = '.$day_of_week.' OR day_of_week is NULL) AND (day_of_month = '.$day_of_month.' or day_of_month is NULL) AND hour_of_day = '.$hour_of_day.' AND id NOT IN (SELECT type from tournament where ausgewertet = FALSE)';
echo $sql;
// echo $sql;
$qry = db_query($sql);
@ -131,7 +131,7 @@ function retrieveParticipants($tournament_type) {
$sql = 'SELECT count(*) as anzahl from chars c where '.$filter_sql;