summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.php b/update.php
index 3f18b2689..457dcc3f7 100644
--- a/update.php
+++ b/update.php
@@ -420,7 +420,7 @@ function update_progress_page() {
* the overall percentage finished. The second element is a status message.
*/
function update_do_updates() {
- while (($update = reset($_SESSION['update_remaining']))) {
+ while (isset($_SESSION['update_remaining']) && ($update = reset($_SESSION['update_remaining']))) {
$update_finished = update_data($update['module'], $update['version']);
if ($update_finished == 1) {
// Dequeue the completed update.