diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 4967991..a5cb5b0 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -609,7 +609,6 @@ function drupal_settings_initialize() {
   if (isset($base_url)) {
     // Parse fixed base URL from settings.php.
     $parts = parse_url($base_url);
-    $http_protocol = $parts['scheme'];
     if (!isset($parts['path'])) {
       $parts['path'] = '';
     }
@@ -619,8 +618,7 @@ function drupal_settings_initialize() {
   }
   else {
     // Create base URL
-    $http_protocol = $is_https ? 'https' : 'http';
-    $base_root = $http_protocol . '://' . $_SERVER['HTTP_HOST'];
+    $base_root = ($is_https ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
 
     $base_url = $base_root;
 
