Viewing 1 replies (of 1 total)
  • Plugin Author LaMonte Forthun

    (@lamontef)

    This will be fixed in a new release that I’ll put out shortly, but if you want to fix it on your own, change this (starting on line 99 of match.php in the admin folder):

    //$match_day = 1;
    $matches[0]->year = ( isset($_GET['season']) && is_numeric($_GET['season']) ) ? (int)$_GET['season'] : date("Y");

    to

    //$match_day = 1;
    $matches[] = new stdClass();
    $matches[0]->year = ( isset($_GET['season']) && is_numeric($_GET['season']) ) ? (int)$_GET['season'] : date("Y");

    So you are adding:
    $matches[] = new stdClass();

    to line 99.

    Then replace this (starting on line 104 – after the above change – of match.php in the admin folder):

    for ( $h = 0; $h < $max_matches; $h++ ) {
    	$matches[$h]->hour = $league->default_match_start_time['hour'];
    	$matches[$h]->minutes = $league->default_match_start_time['minutes'];
    }

    with this:

    for ( $h = 0; $h < $max_matches; $h++ ) {
    	$matches[] = new stdClass();
    	$matches[$h]->hour = $league->default_match_start_time['hour'];
    	$matches[$h]->minutes = $league->default_match_start_time['minutes'];
    }

    which adds the same text to line 105

Viewing 1 replies (of 1 total)
  • The topic ‘ERROR When about to add matches’ is closed to new replies.