I'm getting warning: Invalid argument supplied for foreach() in /home/ntumsec/public_html/sites/all/modules/private_upload/private_upload.module on line 287. when I'm browsing through the organic group pages. Using Drupal 5.6 and og 5.0.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | private_upload-287.patch | 665 bytes | bensheldon |
Comments
Comment #1
starbow commentedComment #2
Totakeke commentedSorry, but are there any updates on this yet?
Comment #3
bensheldon commentedThis is the block of code with the example (the foreach is line 287):
Basically the issue is that not all nodes may have $node->files set. So I added a check (isset) to the previous if statement:
(Sorry, having some problems actually issuing a patch)
Comment #4
bensheldon commentedOK, patch attached.
Comment #5
Totakeke commentedThat works for me, thanks!
Comment #6
starbow commentedThanks. This has been committed and will get rolled into the next beta.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.