diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 22eb5b8..af216f7 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -707,7 +707,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'] = '';
     }
@@ -717,8 +716,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;
 
