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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-02-04 19:56:36 +00:00
parent 603d6cb6df
commit 297f3e3757
1 changed files with 1 additions and 3 deletions

View File

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