From e2bcdbcedb605325e4f08894281cedfaf3b6bc8d Mon Sep 17 00:00:00 2001
From: David Rothstein <drothstein@gmail.com>
Date: Fri, 25 May 2012 00:41:30 -0400
Subject: [PATCH] Issue #1517654 by zuuperman, sheise: Fixed Strict warning by
 field_ui_table_pre_render().

---
 modules/field_ui/field_ui.admin.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc
index 33ce2f05cf7d..4832f67c9575 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'] : '');
         }
 
-- 
GitLab