avs-code / PREM-Podium-race-E-manager

Description PREM (Podium race e manager) is management software for races and race leagues. It can be used to create overviews of race results. Based on Paddock 7.10beta by: demontpx
https://arv187.github.io/PREM-Podium-race-E-manager/
GNU General Public License v3.0
5 stars 1 forks source link

Standings Block errors when no standings exists. #58

Closed rearley closed 5 years ago

rearley commented 5 years ago

Describe the bug When loading a fresh copy of the database with no entries, this produces an error in the standings block. It is a PHP Notice but should not be there.

Notice: Undefined variable: standing_pages in /var/www/html/PREM-Podium-race-E-manager/blocks/standings.php on line 69

To Reproduce Steps to reproduce the behavior:

  1. Load fresh database
  2. Enable PHP Errors
  3. Navigate to main index.php page.
  4. See error

Expected behavior You should just see an empty block or a message stating no standings found.

Screenshots https://www.screencast.com/t/xBTZz5dEUULB

Desktop (please complete the following information):

avs-code commented 5 years ago

Thanks! that block isn't finished, I'm not surprised that he has errors I going to upload a sql data to test in a new issue. #61