Radio Streaming - 50% Lifetime Discount with purchase of any Joomla Web Radio Addon. Discount Code: STR15-Z
See Radio Streaming Plans

Results 1 to 2 of 2

Thread: seasons problem

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    8

    seasons problem

    I start new season and there is a problem. For example it is now week 3 and I see that when you click on player's predictions it shows his prediction for week 3 for both season 1 and season 2. Is it possible to show player predictions for the current week only for the current season ?

  2. #2
    Administrator
    Join Date
    Jul 2015
    Posts
    65
    Hello

    this is a bug for a quick fix please change the following code

    file : <joomla installation>/components/com_multileague/models/playerhistory.php should be at line 69

    Code:
    ->where("g.week=".$week." AND pp.user_id=".$user)
    change this line of code to

    Code:
    ->where("g.week=".$week." AND g.season_id=$season AND pp.user_id=".$user)
    also in file :<joomla installation>/components/com_multileague/views/playerhistory/view.html.php at line 49~50

    Code:
    if($season==""){
          $this->seasonObj=$model->getSeasons();
    change it to

    Code:
    $this->seasonObj=$model->getSeasons();
    if($season==""){

    (swap those lines)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •