Don't append to non-existent variables.

5.x
Neil Drumm 2006-11-30 01:37:56 +00:00
parent 58a1351c1d
commit 05a9e540b4
1 changed files with 4 additions and 4 deletions

View File

@ -2052,7 +2052,7 @@ function theme_user_admin_account($form) {
t('Operations') t('Operations')
); );
$output .= drupal_render($form['options']); $output = drupal_render($form['options']);
if (isset($form['name']) && is_array($form['name'])) { if (isset($form['name']) && is_array($form['name'])) {
foreach (element_children($form['name']) as $key) { foreach (element_children($form['name']) as $key) {
$rows[] = array( $rows[] = array(
@ -2317,7 +2317,7 @@ function user_admin($callback_arg = '') {
$output = drupal_get_form('user_multiple_delete_confirm'); $output = drupal_get_form('user_multiple_delete_confirm');
} }
else { else {
$output .= drupal_get_form('user_filter_form'); $output = drupal_get_form('user_filter_form');
$output .= drupal_get_form('user_admin_account'); $output .= drupal_get_form('user_admin_account');
} }
} }
@ -2559,7 +2559,7 @@ function user_filter_form() {
* Theme user administration filter form. * Theme user administration filter form.
*/ */
function theme_user_filter_form($form) { function theme_user_filter_form($form) {
$output .= '<div id="user-admin-filter">'; $output = '<div id="user-admin-filter">';
$output .= drupal_render($form['filters']); $output .= drupal_render($form['filters']);
$output .= '</div>'; $output .= '</div>';
$output .= drupal_render($form); $output .= drupal_render($form);
@ -2570,7 +2570,7 @@ function theme_user_filter_form($form) {
* Theme user administraton filter selector. * Theme user administraton filter selector.
*/ */
function theme_user_filters($form) { function theme_user_filters($form) {
$output .= '<ul class="clear-block">'; $output = '<ul class="clear-block">';
if (sizeof($form['current'])) { if (sizeof($form['current'])) {
foreach (element_children($form['current']) as $key) { foreach (element_children($form['current']) as $key) {
$output .= '<li>'. drupal_render($form['current'][$key]) .'</li>'; $output .= '<li>'. drupal_render($form['current'][$key]) .'</li>';