diff options
author | patdenice <patdenice@piwigo.org> | 2011-11-17 14:41:38 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-11-17 14:41:38 +0000 |
commit | 942a8c0d74db4ec5a63a99fa12d50de202ed0212 (patch) | |
tree | 616fa4461b0e9778ac7e690ceda9d7b9077f3cec /admin/include | |
parent | bc1650816156f7d778d03c81923474fd66f445b3 (diff) |
merge r12640 from trunk to branch 2.3
bug:2511
Warning messages during thumbnails creation (FTP method)
git-svn-id: http://piwigo.org/svn/branches/2.3@12641 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 3491e0c4e..77e419d5b 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -858,6 +858,8 @@ function get_fs($path, $recursive = true) { while (($node = readdir($contents)) !== false) { + if ($node == '.' or $node == '..') continue; + if (is_file($path.'/'.$node)) { $extension = get_extension($node); @@ -884,11 +886,7 @@ function get_fs($path, $recursive = true) array_push($fs['elements'], $path.'/'.$node); } } - else if (is_dir($path.'/'.$node) - and $node != '.' - and $node != '..' - and $node != 'pwg_high' - and $recursive) + else if (is_dir($path.'/'.$node) and $node != 'pwg_high' and $recursive) { array_push($subdirs, $node); } |