Commit ee9cfb91 authored by Dries's avatar Dries

- Patch #1001624 by pillarsdotnet: avoid 'Undefined index' notice in...

- Patch #1001624 by pillarsdotnet: avoid 'Undefined index' notice in field_info_max_weight() function of modules/field/field.info.inc.
parent bc1b67fd
......@@ -793,7 +793,7 @@ function field_info_max_weight($entity_type, $bundle, $context) {
if ($context == 'form') {
$weights[] = $instance['widget']['weight'];
}
else {
elseif (isset($instance['display'][$context]['weight'])) {
$weights[] = $instance['display'][$context]['weight'];
}
}
......
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