From 297f3e375704947d3b6ad924ab6bb59194244454 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Thu, 4 Feb 2010 19:56:36 +0000 Subject: [PATCH] close dir in recurse_dirsize(), props ddebernardy, fixes #11749 git-svn-id: http://svn.automattic.com/wordpress/trunk@12953 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 4c90fc56f..9b646ff54 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -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; } } }