Skip to content

Commit

Permalink
bug:2511
Browse files Browse the repository at this point in the history
Warning messages during thumbnails creation (FTP method)

git-svn-id: http://piwigo.org/svn/trunk@12640 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Nov 17, 2011
1 parent 24e6177 commit 5c7f267
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions admin/include/functions.php
Expand Up @@ -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);
Expand All @@ -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);
}
Expand Down

0 comments on commit 5c7f267

Please sign in to comment.