Closed (fixed)
Project:
Slideshow Creator
Version:
6.x-1.28
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2008 at 02:22 UTC
Updated:
27 Jul 2008 at 03:27 UTC
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
Comment #1
brmassa commentedDavid,
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
Comment #2
neofactor commentedThanks for the fix.... works great now.
Comment #3
brmassa commented