Closed (fixed)
Project:
Block reference
Version:
6.x-1.21
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2011 at 08:02 UTC
Updated:
6 Apr 2011 at 02:01 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| blockreference.module.patch | 854 bytes | miikamakarainen |
Comments
Comment #1
danielb commentedI have added an additional check for is_array() which should remove the invalid argument warning.