*/
function get_space_allowed() {
$space_allowed = get_option( 'blog_upload_space' );
- if ( $space_allowed === false )
+
+ if ( ! is_numeric( $space_allowed ) )
$space_allowed = get_site_option( 'blog_upload_space' );
- if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
+
+ if ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
$space_allowed = 50;
return $space_allowed;