From 74a7badf6947617b40c52fa19aa84a1e0dcb533f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 24 Oct 2008 18:47:02 +0000 Subject: - Patch #325426 by moshe: correct count in update.php. --- update.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 98578eb17..0a0dc2f35 100644 --- a/update.php +++ b/update.php @@ -203,7 +203,8 @@ function update_selection_page() { } function update_script_selection_form() { - $form = $all = array(); + $form = array(); + $count = 0; $form['start'] = array( '#tree' => TRUE, '#type' => 'fieldset', @@ -258,10 +259,10 @@ function update_script_selection_form() { } } unset($default); - $all += $pending; + $count = $count + count($pending); } - if (empty($all)) { + if (empty($count)) { drupal_set_message(t('No pending updates.')); unset($form); $form['links'] = array( @@ -273,7 +274,7 @@ function update_script_selection_form() { '#markup' => '

The version of Drupal you are updating from has been automatically detected.

', '#weight' => -5, ); - $form['start']['#title'] = strtr('!num pending updates', array('!num' => count($all))); + $form['start']['#title'] = strtr('!num pending updates', array('!num' => $count)); $form['has_js'] = array( '#type' => 'hidden', '#default_value' => FALSE, -- cgit v1.2.3