diff --git a/web/api/app/Controller/AppController.php b/web/api/app/Controller/AppController.php index 5c1c99f89..2ae51685e 100644 --- a/web/api/app/Controller/AppController.php +++ b/web/api/app/Controller/AppController.php @@ -154,7 +154,7 @@ class AppController extends Controller { // make sure populated user object has APIs enabled if (isset($_SERVER['HTTP_ORIGIN'])) { - $Servers = ZM\Server::find(); + global $Servers; if ( sizeof($Servers) < 1 ) { # Only need CORSHeaders in the event that there are multiple servers in use. # ICON: Might not be true. multi-port?