warning: Invalid argument supplied for foreach() in C:\wamp\www\drupal47\modules\contrib\shazamgallery\shazamgallery.module on line 205.

Using wamp and drupal 4.7

Comments

Bèr Kessels’s picture

without looking at the code. I suspect that this happens when there are no galleries yet. Is that corect? Did the message dissapear once you had posted your first gallery-node?

morphir’s picture

I checked, but I'am afraid the error message is still there. However its only there when I'am making or editing a gallery-node.
And the weird thing is, that I cant seem to get what is wrong on the page. Everything seems to work smooth.

The code for line 205 is:

foreach (shazamgallery_get_galleries() as $gallery) {
$options[$gallery->nid] = $gallery->title;
}

Bèr Kessels’s picture

Status: Active » Fixed

Fixed in CVS. Thanks for the report.

Anonymous’s picture

Status: Fixed » Closed (fixed)