When $vars['element']['#attributes']['class'] isn't set, the above error is triggered.

Patch coming right up.

CommentFileSizeAuthor
#1 rubik-1248650-fix-fatal-error.patch934 bytesskwashd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skwashd’s picture

This patch fixes the problem.

fxarte’s picture

How can this issue be reproduced?

skwashd’s picture

As per the original comment, then an element has ['#attributes']['class'] unset

skwashd’s picture

Status: Active » Needs review
CoffeyMachine’s picture

Status: Needs review » Fixed

This is an edge case, I've never run into this issue before, and was not able to reproduce it. The code looks fine however, and I don't think it is likely to cause any problems. I've gone ahead and committed to 7.x-dev. Thanks.

Status: Fixed » Closed (fixed)

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