diff --git a/web/includes/functions.php b/web/includes/functions.php index e14eb369d..bc7218ad4 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -99,6 +99,10 @@ function CORSHeaders() { # The following is left for future reference/use. $valid = false; + $servers = dbFetchAll( 'SELECT * FROM Servers' ); + if ( ! sizeof($servers) ) { + return; + } foreach( dbFetchAll( 'SELECT * FROM Servers' ) as $row ) { $Server = new Server( $row ); if ( $_SERVER['HTTP_ORIGIN'] == $Server->Url() ) {