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).

Comments

vinmassaro’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

Here is a patch that checks if $form[$field][LANGUAGE_NONE]['#title'] is not empty first to avoid the notice.

  • odegard committed b8a5440 on 7.x-1.x authored by vinmassaro
    Issue #2374913 by vinmassaro: fixed php notice when title is empty
    
odegard’s picture

Committed with attribution and with minor style changes to tertiary operators. Thanks!

odegard’s picture

Status: Needs review » Fixed

.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.