diff --git a/update.php b/update.php
index 91887c1957b898c346629a4058a888eb42ed2c3e..d0f961efbf3d031fd2aa77e4cbe708171213c98b 100644
--- a/update.php
+++ b/update.php
@@ -101,6 +101,7 @@ function update_access_denied_page() {
 
 include_once './includes/bootstrap.inc';
 drupal_maintenance_theme();
+
 if (isset($_GET["op"])) {
   drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
 
@@ -122,6 +123,7 @@ function update_access_denied_page() {
   }
 }
 else {
+  drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
   $output = update_info_page();
 }