[fixed] Bug in Admin -> Media library
Posted: Wed Jun 29, 2005 12:31 am
I'm using .8beta4 at the moment, but looked at the .81 source and the bug still seems to be there.
I have about 10 images in the /uploads/ directory.
Create a new directory using Admin -> Manage Directory (I created "Images") and leave it empty. Should now have /uploads/Images/ with no contents.
Goto the Admin -> Media Library and you should see:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /usr/dh0/websites/dh0/docroot/blog/include/functions_images.inc.php on line 1200
Filters - Find media
changing the return from false; to array(); fixed the error message and I have yet to see any ill side effects.[/code]
I have about 10 images in the /uploads/ directory.
Create a new directory using Admin -> Manage Directory (I created "Images") and leave it empty. Should now have /uploads/Images/ with no contents.
Goto the Admin -> Media Library and you should see:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /usr/dh0/websites/dh0/docroot/blog/include/functions_images.inc.php on line 1200
Filters - Find media
Code: Select all
function serendipity_traversePath($basedir, $dir='', $onlyDirs=true, $pattern = NULL, $depth = 1) {
$dh = @opendir($basedir . '/' . $dir);
if ( !$dh ) {
return array();
}