Warning: Invalid argument supplied for foreach() in _blockreference_potential_references() (line 662 of sites\all\modules\contrib\blockreference\blockreference.module).

Fixed by adding empty-clause to check if field contains any values. See attached patch.

CommentFileSizeAuthor
blockreference.module.patch854 bytesmiikamakarainen

Comments

danielb’s picture

Status: Needs review » Fixed

I have added an additional check for is_array() which should remove the invalid argument warning.

Status: Fixed » Closed (fixed)

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