diff options
author | David Rothstein <drothstein@gmail.com> | 2012-05-25 00:41:30 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-05-25 00:41:30 -0400 |
commit | e2bcdbcedb605325e4f08894281cedfaf3b6bc8d (patch) | |
tree | 961d2c1aa1caf89263ede22dfe2d5a38f8c99e83 /modules/field_ui | |
parent | 4c6faf1d951a79d37e18d18801ce55d5f0e2e329 (diff) | |
download | brdo-e2bcdbcedb605325e4f08894281cedfaf3b6bc8d.tar.gz brdo-e2bcdbcedb605325e4f08894281cedfaf3b6bc8d.tar.bz2 |
Issue #1517654 by zuuperman, sheise: Fixed Strict warning by field_ui_table_pre_render().
Diffstat (limited to 'modules/field_ui')
-rw-r--r-- | modules/field_ui/field_ui.admin.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc index 33ce2f05c..4832f67c9 100644 --- a/modules/field_ui/field_ui.admin.inc +++ b/modules/field_ui/field_ui.admin.inc @@ -162,7 +162,8 @@ function field_ui_table_pre_render($elements) { // Add tabledrag indentation to the first row cell. if ($depth = count($parents[$name])) { - $cell = current(element_children($row)); + $children = element_children($row); + $cell = current($children); $row[$cell]['#prefix'] = theme('indentation', array('size' => $depth)) . (isset($row[$cell]['#prefix']) ? $row[$cell]['#prefix'] : ''); } |