diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 778e3de403..6bc193ba2f 100644
|
a
|
b
|
function wp_dashboard_quota() {
|
| 1661 | 1661 | $quota = get_space_allowed(); |
| 1662 | 1662 | $used = get_space_used(); |
| 1663 | 1663 | |
| | 1664 | if ( $quota <= 0 ) { |
| | 1665 | return; |
| | 1666 | } |
| | 1667 | |
| 1664 | 1668 | if ( $used > $quota ) { |
| 1665 | 1669 | $percentused = '100'; |
| 1666 | 1670 | } else { |
diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php
index be87d05aea..2735078a02 100644
|
a
|
b
|
function display_space_usage() {
|
| 256 | 256 | $space_allowed = get_space_allowed(); |
| 257 | 257 | $space_used = get_space_used(); |
| 258 | 258 | |
| 259 | | $percent_used = ( $space_used / $space_allowed ) * 100; |
| | 259 | $percent_used = $space_allowed > 0 ? ( $space_used / $space_allowed ) * 100 : 0; |
| 260 | 260 | |
| 261 | 261 | $space = size_format( $space_allowed * MB_IN_BYTES ); |
| 262 | 262 | ?> |