aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-11-17 18:10:51 +0000
committerpatdenice <patdenice@piwigo.org>2011-11-17 18:10:51 +0000
commit26def6668593bfbc03935eb2bd1ab7bc66d974a9 (patch)
tree7939234150d11262b76f26481d415f2c7d3540cd /admin/include
parent942a8c0d74db4ec5a63a99fa12d50de202ed0212 (diff)
merge r12642 from trunk to branch 2.3
bug:2513 Warning messages during synchronisation on some servers git-svn-id: http://piwigo.org/svn/branches/2.3@12643 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 77e419d5b..dfc596235 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -533,13 +533,13 @@ function get_fs_directories($path, $recursive = true)
{
while (($node = readdir($contents)) !== false)
{
- if (is_dir($path.'/'.$node)
- and $node != '.'
+ if ($node != '.'
and $node != '..'
and $node != '.svn'
and $node != 'thumbnail'
and $node != 'pwg_high'
- and $node != 'pwg_representative')
+ and $node != 'pwg_representative'
+ and is_dir($path.'/'.$node))
{
array_push($dirs, $path.'/'.$node);
if ($recursive)