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

Bèr Kessels’s picture

Title: Invalid argument supplied for foreach() » New installations have no galleries yet. Check for that.

We must cehck the existance of any galleries before we call these into the foreach.

stephenhendry’s picture

Title: New installations have no galleries yet. Check for that. » New installations have no galleries yet. Check for that.
Status: Active » Closed (fixed)