When the build() method of a Block object returns an empty array, the following error gets echoed:

Notice: Undefined index: #configuration in token_block_view_alter() (line 78 of modules/contrib/token/token.module).

We should add a check before assessing the $label variable.

CommentFileSizeAuthor
#2 token-undefined_index-2916743-1.patch1.41 KBoeklesund

Comments

becassin created an issue. See original summary.

oeklesund’s picture

StatusFileSize
new1.41 KB
gg24’s picture

Assigned: Unassigned » gg24
gg24’s picture

Assigned: gg24 » Unassigned
Status: Active » Reviewed & tested by the community

Hi @becassin,

I have tested this patch. This works as expected.
Hence issue RTBC.

Thanks!

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

  • Berdir committed f667f83 on 8.x-1.x authored by becassin
    Issue #2916743 by becassin: Notice: Undefined index: #configuration in...

Status: Fixed » Closed (fixed)

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