Closed (fixed)
Project:
shazamgallery
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2006 at 19:19 UTC
Updated:
24 Sep 2009 at 16:04 UTC
Installed Drupal4.7RC. Installed CVS version of Image Module, 4.7 view module & shazamgallery 4.7. When I go to create an image I get this error message:
Invalid argument supplied for foreach() in /home/mysite/public_html/drupal/modules/shazamgallery/shazamgallery.module on line 205.
The code for line 205-207 is the folowing.
foreach (shazamgallery_get_galleries() as $gallery) {
$options[$gallery->nid] = $gallery->title;
}
Comments
Comment #1
Bèr Kessels commentedWe must cehck the existance of any galleries before we call these into the foreach.
Comment #2
stephenhendry commented