Fixes issue with HTTPS key not found on non-HTTPS installs

This commit is contained in:
snipe 2016-05-17 21:15:48 -07:00
parent f9572ffa0c
commit 0ea5b090af

View file

@ -50,7 +50,7 @@ class SettingsController extends Controller
$start_settings['db_error'] = $e->getMessage();
}
$protocol = $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://';
$protocol = array_key_exists('HTTPS',$_SERVER) && ( $_SERVER['HTTPS'] == "on") ? 'https://' : 'http://';
$pageURL = $protocol;