Commit cb34d838 authored by Dries's avatar Dries
Browse files

- Patch #131483 by kkaefer: E_NOTICE cleanup.

parent f7440d4d
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment