summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-12-27 16:23:50 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-12-27 16:23:50 -0500
commitbb746492d200122566557937aeb4bc7e7d20f6cc (patch)
tree07a443a69063e78f61209416b60802ece6e7815b /update.php
parent663d464a4ec17f1ab55d5948a45bc54d280a46c2 (diff)
downloadbrdo-bb746492d200122566557937aeb4bc7e7d20f6cc.tar.gz
brdo-bb746492d200122566557937aeb4bc7e7d20f6cc.tar.bz2
Issue #1504522 by rahulbile, Chi: Strict warning: Only variables should be passed by reference in update_results_page().
Diffstat (limited to 'update.php')
-rw-r--r--update.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/update.php b/update.php
index c3d404547..d79270305 100644
--- a/update.php
+++ b/update.php
@@ -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>';
}
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;
if (module_exists('dblog')) {
$output .= ' You may need to check the <code>watchdog</code> database table manually.';