If the 'title' field description is empty and you are using the 'Between title and input' setting, you get a PHP notice like:
Notice: Undefined index: und in better_field_descriptions_form_alter() (line 143 of /sandbox/d7/sites/all/modules/contrib/better_field_descriptions/better_field_descriptions.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | php_notice_if_title-2374913-1.patch | 1.1 KB | vinmassaro |
Comments
Comment #1
vinmassaro commentedHere is a patch that checks if
$form[$field][LANGUAGE_NONE]['#title']is not empty first to avoid the notice.Comment #3
odegard commentedCommitted with attribution and with minor style changes to tertiary operators. Thanks!
Comment #4
odegard commented.