From f72260733c430e0ae95d530ce2029e0d06792d26 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 4 Jan 2016 09:38:24 -0500 Subject: [PATCH] Only do CORSHeaders if there is more than 1 server --- web/includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index bc7218ad4..30b183385 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -100,7 +100,8 @@ function CORSHeaders() { # The following is left for future reference/use. $valid = false; $servers = dbFetchAll( 'SELECT * FROM Servers' ); - if ( ! sizeof($servers) ) { + if ( sizeof($servers) <= 1 ) { + # Only need CORSHeaders in the event that there are multiple servers in use. return; } foreach( dbFetchAll( 'SELECT * FROM Servers' ) as $row ) {