On malformed entities, 'enabled' may not be set.

Change this

$item['enabled'] = (int) ((bool) $item['enabled']);

to

$item['enabled'] = isset($item['enabled']) ? (int) ((bool) $item['enabled']) : 0;
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex.skrypnyk’s picture

codesidekick’s picture

Status: Active » Fixed

Patched, committed to dev and pushed to release 7.x-1.2 with attribution.

Status: Fixed » Closed (fixed)

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