PHP 5.3 returns true on isset($arrayname['hash']) when $arrayname is a string. This causes an invalid argument supplied for foreach error in base.inc on line 215.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pdrake’s picture

Patch for 7.x-3.x.

pdrake’s picture

This also occurs on line 268. The attached patch fixes both.

dawehner’s picture

Status: Active » Needs work

Update status.

I set this to needs work, because this actually shows a developing error. Contains has to be an array by definition, at least from my perspective, so if someone is doing it wrong, it should be triggered.
Could you find out which option_definition uses 'contains' but has just a string? This would really help.

MustangGB’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)