I get an "infalid argument for foreach() ...." error if I try to create a new album with no pictures in it. Script needs to account for the fact that there may not be any uploaded files in the submission.

Comments

Nicky66’s picture

Here is the patch to remove this ugly error

*** album.module.origin 2006-01-05 10:38:10.215511000 +0100
--- album.module        2006-01-05 10:37:37.070212000 +0100
***************
*** 47,52 ****
--- 47,53 ----
      form_set_error('album_tags', $msg);
      $errors[] = $msg;
    }
+   $nodes = array();
    foreach ($uploads as $field => $filename) {
      if ($filename) {
        $node = new stdClass();
pfrenssen’s picture

Status: Active » Closed (won't fix)

Closing this since the project does not seem to exist anymore.