Past Scores Bug! | Peter's Sports League Standings | Forum
Back to the sports standings script page
1:57 pm
I have a problem.
When a score is added, for example, Team 1 beats Team 2 2-0. The result is correct in the table but on past scores table, The away teams seems to be showing as the home team. and vice versa.
I am unsure which file this would be in. the problem shows on the admin side of things under past scores as well as the standings page.
Hope you can help with my problem.
2:42 pm
I think i solved the problem. I am not sure if its the right thing to do.
In standings.php on line 461:
I switched losingteam and winningteam around
In mainview.php on line 104:
I switched losingteam and winningteam around
I know basic php, so if this is the incorrectway to do things, please let me know.
I couldnt quote the code.
Actually, I cannot reproduce this problem. In versions up to and including 1.4, the past scores table will always show the home team's score first, and then the away team's score, no matter who won or lost. I don't think you have to make the edits as specified (the naming for the variables should be made clearer -- the $winningteam and $losingteam variables actually refer to the home and away teams).