-
+
diff --git a/core/update.php b/core/update.php
index 968e8f4..421be50 100644
--- a/core/update.php
+++ b/core/update.php
@@ -200,7 +200,8 @@ function update_results_page() {
$output = '
Updates were attempted. If you see no failures below, you may proceed happily back to your site. Otherwise, you may need to update your database manually.' . $log_message . '
';
}
else {
- list($module, $version) = array_pop(reset($_SESSION['updates_remaining']));
+ $last = reset($_SESSION['updates_remaining']);
+ list($module, $version) = array_pop($last);
$output = '
The update process was aborted prematurely while running update #' . $version . ' in ' . $module . '.module.' . $log_message;
if (module_exists('dblog')) {
$output .= ' You may need to check the watchdog
database table manually.';