Invalid argument supplied for foreach() taxonomy_place.module:49

This occurs on install because there are no set fields. Need to add an !empty check on fields variable.

Comments

brooke_heaton created an issue. See original summary.

brooke_heaton’s picture

Patch taxonomy_place.module to add !empty on $fields to prevent invalid argument warning.

brooke_heaton’s picture

StatusFileSize
new1023 bytes

Fix patch.

brooke_heaton’s picture

StatusFileSize
new1.52 KB
brooke_heaton’s picture

StatusFileSize
new2.14 KB

Update patch.

brooke_heaton’s picture

Status: Active » Needs review

  • KarenS committed 58de6ac on 8.x-1.x authored by brooke_heaton
    Issue #3043640 by brooke_heaton: Invalid argument supplied for foreach()
    
karens’s picture

Status: Needs review » Fixed

I don't think this will be a problem now that another patch added initial configuration for the settings, but it never hurts to check so I'm adding it. Thanks!

Status: Fixed » Closed (fixed)

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