A PHP Error was encountered

Severity: Warning

Message: Undefined variable $filter

Filename: views/viewleaderboard.php

Line Number: 497

Backtrace:

File: /var/www/vhosts/onlinegolfapp.com/httpdocs/application/views/viewleaderboard.php
Line: 497
Function: _error_handler

File: /var/www/vhosts/onlinegolfapp.com/httpdocs/application/controllers/Tournament.php
Line: 2746
Function: view

File: /var/www/vhosts/onlinegolfapp.com/httpdocs/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: foreach() argument must be of type array|object, null given

Filename: views/viewleaderboard.php

Line Number: 497

Backtrace:

File: /var/www/vhosts/onlinegolfapp.com/httpdocs/application/views/viewleaderboard.php
Line: 497
Function: _error_handler

File: /var/www/vhosts/onlinegolfapp.com/httpdocs/application/controllers/Tournament.php
Line: 2746
Function: view

File: /var/www/vhosts/onlinegolfapp.com/httpdocs/index.php
Line: 316
Function: require_once