When I try and do the new supported Folder recursive lookup:
dir=|sites/default/files/slideshow/|yes|

I get an error: warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/parking/public_html/sites/default/modules/slideshow_creator/slideshow_creator.inc on line 28.

Which when you look at it:

// Get all files from a given path
  $files = array();
  foreach ($exts as $ext) {
    $files = array_merge($files, glob("$path*.$ext"));
  }

Looks like the GLOB is not liked under Drupal 6.

Comments

brmassa’s picture

Status: Active » Fixed

David,

i fixed it. the problem was that glob sometimes return FALSE, a value which cannot be merged with an array using array_merge()

regards,

massa

neofactor’s picture

Thanks for the fix.... works great now.

brmassa’s picture

Status: Fixed » Closed (fixed)