diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-03-28 07:02:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-03-28 07:02:47 +0000 |
commit | cb34d838f32095d551fbd81f5655205126811725 (patch) | |
tree | 2239ad55ca186e610ad1e8081029e95d190fd6ca /update.php | |
parent | f7440d4d73ec57219af232c135be3b2567dda45f (diff) | |
download | brdo-cb34d838f32095d551fbd81f5655205126811725.tar.gz brdo-cb34d838f32095d551fbd81f5655205126811725.tar.bz2 |
- Patch #131483 by kkaefer: E_NOTICE cleanup.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/update.php b/update.php index a8b0f98f9..11e33ddf6 100644 --- a/update.php +++ b/update.php @@ -393,7 +393,9 @@ function update_update_page() { } // Keep track of total number of updates - $_SESSION['update_total'] = count($_SESSION['update_remaining']); + if (isset($_SESSION['update_remaining'])) { + $_SESSION['update_total'] = count($_SESSION['update_remaining']); + } if ($_POST['has_js']) { return update_progress_page(); @@ -546,7 +548,7 @@ function update_finished_page($success) { $output .= theme('item_list', $links); // Output a list of queries executed - if ($_SESSION['update_results']) { + if (!empty($_SESSION['update_results'])) { $output .= '<div id="update-results">'; $output .= '<h2>The following queries were executed</h2>'; foreach ($_SESSION['update_results'] as $module => $updates) { |