warning when no images are uploaded
jkamin - August 17, 2007 - 22:55
| Project: | CCK Multimage |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi -
Still bit of a newbie here (read: don't know php).
I installed cck multimage and it appears to work just fine when images are uploaded onto nodes with the multimage field. But on nodes where no images are uploaded, I get this:
warning: Invalid argument supplied for foreach() in /home/joetalks/public_html/modules/cck_multimage/cck_multimage.module on line 253.
I have the multimage field set as optional, so don't know if I've done something funky with another setting, or if there's something up with the code. I'm assuming I have something set wrong.
Any thoughts on what may be up are appreciated. thanks!

#1
I'll add a check for that. Been reinstalling OS these last few days, had no chance to correct that.
#2
I added a check to add no JS, only CSS (in case you want to theme a single image in a node too), if there is a single image on a field. However, I cannot replicate an actual server side error. Could you provide more details?