From b1487df5294580674ebf58a85b8a71274787e982 Mon Sep 17 00:00:00 2001 From: flotsam Date: Wed, 29 Jun 2005 09:13:51 +0000 Subject: [PATCH] fixed serendipity_traversePath(), thanks to jdhawk for the fix --- docs/NEWS | 6 ++++++ include/functions_images.inc.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index 4cd45f1..5055e42 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 0.9 () ------------------------------------------------------------------------ + * fixed serendipity_traversePath() - PHP5 issue with array_merge() + Thanks to jdhawk for the fix (flotsam) + * fixed wrong display of "found X entries matching your search" in genpage.inc.php (flotsam) @@ -124,6 +127,9 @@ Version 0.9 () Version 0.8.2 () ------------------------------------------------------------------------ + * fixed serendipity_traversePath() - PHP5 issue with array_merge() + Thanks to jdhawk for the fix (flotsam) + * CSS does no longer emit cache-restricting headers, so that the stylesheets can be cached by the browser for followup-requests Thanks to Sencer for pointing this out! (garvinhicking) diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index a108714..f3018a6 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -1195,7 +1195,7 @@ function serendipity_traversePath($basedir, $dir='', $onlyDirs=true, $pattern = $dh = @opendir($basedir . '/' . $dir); if ( !$dh ) { - return false; + return array(); } $files = array(); -- 2.39.5