diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 8d8615a1f..74e0a7a05 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -509,12 +509,12 @@ SQL; $protocol = empty($_SERVER['HTTPS']) ? "http" : "https"; - $serverName = $_SERVER['SERVER_NAME']; + $serverName = $_SERVER['SERVER_NAME']; $serverPort = $_SERVER['SERVER_PORT']; $subDir = $CC_CONFIG['baseDir']; - if ($subDir[0] === "/") { - $subDir = substr($subDir, 1, strlen($subDir) - 1); + if ($subDir[0] === "/") { + $subDir = substr($subDir, 1, strlen($subDir) - 1); } $baseUrl = "{$protocol}://{$serverName}:{$serverPort}/{$subDir}";