Skip to content

Commit

Permalink
Issue #1504522 by rahulbile, Chi: Strict warning: Only variables shou…
Browse files Browse the repository at this point in the history
…ld be passed by reference in update_results_page().
  • Loading branch information
DavidRothstein committed Dec 27, 2013
1 parent 663d464 commit bb74649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update.php
Expand Up @@ -178,7 +178,8 @@ function update_results_page() {
$output = '<p>Updates were attempted. If you see no failures below, you may proceed happily back to your <a href="' . base_path() . '">site</a>. Otherwise, you may need to update your database manually.' . $log_message . '</p>'; $output = '<p>Updates were attempted. If you see no failures below, you may proceed happily back to your <a href="' . base_path() . '">site</a>. Otherwise, you may need to update your database manually.' . $log_message . '</p>';
} }
else { else {
list($module, $version) = array_pop(reset($_SESSION['updates_remaining'])); $updates_remaining = reset($_SESSION['updates_remaining']);
list($module, $version) = array_pop($updates_remaining);
$output = '<p class="error">The update process was aborted prematurely while running <strong>update #' . $version . ' in ' . $module . '.module</strong>.' . $log_message; $output = '<p class="error">The update process was aborted prematurely while running <strong>update #' . $version . ' in ' . $module . '.module</strong>.' . $log_message;
if (module_exists('dblog')) { if (module_exists('dblog')) {
$output .= ' You may need to check the <code>watchdog</code> database table manually.'; $output .= ' You may need to check the <code>watchdog</code> database table manually.';
Expand Down

0 comments on commit bb74649

Please sign in to comment.