Commit faa75e77 authored by catch's avatar catch
Browse files

Issue #1517654 by zuuperman: Fixed Strict warning by field_ui_table_pre_render().

parent 9d8b3f59
...@@ -169,7 +169,8 @@ function field_ui_table_pre_render($elements) { ...@@ -169,7 +169,8 @@ function field_ui_table_pre_render($elements) {
// Add tabledrag indentation to the first row cell. // Add tabledrag indentation to the first row cell.
if ($depth = count($parents[$name])) { 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'] : ''); $row[$cell]['#prefix'] = theme('indentation', array('size' => $depth)) . (isset($row[$cell]['#prefix']) ? $row[$cell]['#prefix'] : '');
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment