From 0cbda3349a2571904ea063fdd73e018299919589 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 23 Oct 2007 16:48:55 +0000 Subject: Make sure upload dir exists before check file upload space, props beaulebens, fixed #472 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1124 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/includes/mu.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wp-admin') diff --git a/wp-admin/includes/mu.php b/wp-admin/includes/mu.php index 2ba8327..34e8894 100644 --- a/wp-admin/includes/mu.php +++ b/wp-admin/includes/mu.php @@ -312,6 +312,9 @@ function wpmu_checkAvailableSpace() { $spaceAllowed = get_space_allowed(); $dirName = trailingslashit( constant( "ABSPATH" ) . constant( "UPLOADS" ) ); + if (!(is_dir($dir) && is_readable($dir))) + return; + $dir = dir($dirName); $size = 0; -- cgit