From c5207a5e6e5fbdf33339abe42908fe6404f9c2c8 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 | 3 +++ include/functions_images.inc.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index c17e788..57dbca4 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ svn di# $Id$ 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 2eea3a3..7890a4d 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -1191,7 +1191,7 @@ function serendipity_traversePath($basedir, $dir='', $onlyDirs=true, $pattern = $dh = @opendir($basedir . '/' . $dir); if ( !$dh ) { - return false; + return array(); } $files = array(); -- 2.39.5