close dir in recurse_dirsize(), props ddebernardy, fixes #11749

git-svn-id: https://develop.svn.wordpress.org/trunk@12953 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-02-04 19:56:36 +00:00
parent b21acae7f0
commit d8e029950c
1 changed files with 1 additions and 3 deletions

View File

@ -1608,10 +1608,8 @@ function recurse_dirsize( $directory ) {
$size += filesize($path);
} elseif (is_dir($path)) {
$handlesize = recurse_dirsize($path);
if ($handlesize >= 0)
if ($handlesize > 0)
$size += $handlesize;
else
return false;
}
}
}